From c21180fb069345c572b3d529516d04f7d7e97a1f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 30 Nov 2007 10:55:09 +0000 Subject: 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 --- firmware/export/config-ipod3g.h | 3 --- 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 036ecca324..ed0a557299 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 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; -- cgit v1.2.3