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:
parent
124f8dec63
commit
c21180fb06
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue