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 | |
| parent | 124f8dec6365b3e1e50eca11afe278183842db68 (diff) | |
| download | rockbox-c21180fb069345c572b3d529516d04f7d7e97a1f.zip rockbox-c21180fb069345c572b3d529516d04f7d7e97a1f.tar.gz rockbox-c21180fb069345c572b3d529516d04f7d7e97a1f.tar.bz2 rockbox-c21180fb069345c572b3d529516d04f7d7e97a1f.tar.xz | |
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
| -rw-r--r-- | firmware/export/config-ipod3g.h | 3 | ||||
| -rw-r--r-- | firmware/powermgmt.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h index 036ecca..ed0a557 100644 --- a/firmware/export/config-ipod3g.h +++ b/firmware/export/config-ipod3g.h @@ -2,9 +2,6 @@ * 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 IPOD_ARCH 1 diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 1876459..d1efa29 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; |