diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-11-30 10:55:09 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-11-30 10:55:09 +0000 |
commit | c21180fb069345c572b3d529516d04f7d7e97a1f (patch) | |
tree | 3a72613aef03aefc38d9cf2577986b3a068d56e3 /firmware/powermgmt.c | |
parent | 124f8dec6365b3e1e50eca11afe278183842db68 (diff) |
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
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 18764591ab..d1efa29dca 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -797,6 +797,9 @@ static void power_thread(void) int last_disk_activity = CHARGE_END_LONGD + 1; /* last hdd use x mins ago */ #endif + /* Delay reading the first battery level */ + sleep(HZ/100); + /* initialize the voltages for the exponential filter */ avgbat = battery_adc_voltage() + 15; |