forked from len0rd/rockbox
YH920 : enable battery reading (uncalibrated yet)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22592 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9b700b2861
commit
f81cadad2a
1 changed files with 1 additions and 2 deletions
|
@ -54,6 +54,5 @@ const unsigned short percent_to_volt_charge[11] =
|
||||||
/* Returns battery voltage from ADC [millivolts] */
|
/* Returns battery voltage from ADC [millivolts] */
|
||||||
unsigned int battery_adc_voltage(void)
|
unsigned int battery_adc_voltage(void)
|
||||||
{
|
{
|
||||||
/* return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10; */
|
return (adc_read(ADC_UNREG_POWER) * BATTERY_SCALE_FACTOR) >> 10;
|
||||||
return 4100;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue