mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Samsung YH-820: enable battery monitoring
The "percent_to_volt_charge" values are quite arbitrary and may need some more tweaking. Change-Id: I9f177d46681030d615fe2c2e78cf9bd2dde026af Reviewed-on: http://gerrit.rockbox.org/824 Reviewed-by: Szymon Dziok <b0hoon@o2.pl> Tested: Szymon Dziok <b0hoon@o2.pl>
This commit is contained in:
parent
6bbfb35560
commit
7e778c5f49
3 changed files with 12 additions and 14 deletions
|
|
@ -63,7 +63,7 @@ unsigned short adc_scan(int channel)
|
|||
|
||||
adcdata[channel] = (adc_data_1<<2 | adc_data_2);
|
||||
|
||||
#if !(defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330))
|
||||
#if !(defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330) || defined(SAMSUNG_YH820))
|
||||
/* ADC values read low if PLL is enabled */
|
||||
if(PLL_CONTROL & 0x80000000){
|
||||
adcdata[channel] += 0x14;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue