1
0
Fork 0
forked from len0rd/rockbox

Delay reading the first battery level for at least 1 tick. Seems to fix the low battery shutdown problem on 3g. Reenable the low battery shutdown on 3g.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15857 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-11-30 10:55:09 +00:00
parent 124f8dec63
commit c21180fb06
2 changed files with 3 additions and 3 deletions

View file

@ -2,9 +2,6 @@
* This config file is for the Apple iPod 3g * This config file is for the Apple iPod 3g
*/ */
/* Temp measure until the low batt problem is figured out */
#define NO_LOW_BATTERY_SHUTDOWN
#define TARGET_TREE /* this target is using the target tree system */ #define TARGET_TREE /* this target is using the target tree system */
#define IPOD_ARCH 1 #define IPOD_ARCH 1

View file

@ -797,6 +797,9 @@ static void power_thread(void)
int last_disk_activity = CHARGE_END_LONGD + 1; /* last hdd use x mins ago */ int last_disk_activity = CHARGE_END_LONGD + 1; /* last hdd use x mins ago */
#endif #endif
/* Delay reading the first battery level */
sleep(HZ/100);
/* initialize the voltages for the exponential filter */ /* initialize the voltages for the exponential filter */
avgbat = battery_adc_voltage() + 15; avgbat = battery_adc_voltage() + 15;