forked from len0rd/rockbox
Fix the sim errors in battery_read_info.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11397 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9e8fe0e4c6
commit
cd8239f22d
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ void battery_read_info(int *adc, int *voltage, int *level)
|
|||
battery_status_update();
|
||||
|
||||
if (adc)
|
||||
*adc = batt_centivolts*10000 / BATTERY_SCALE_FACTOR;
|
||||
*adc = batt_centivolts; /* just return something */
|
||||
|
||||
if (voltage)
|
||||
*voltage = batt_centivolts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue