forked from len0rd/rockbox
Start new charge cycle should be possible in trickle mode. This should fix the battries getting empty in USB mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3129 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bc8029ee59
commit
8ee6275a06
1 changed files with 6 additions and 1 deletions
|
@ -496,7 +496,12 @@ static void power_thread(void)
|
|||
/* turn it off now */
|
||||
if (charger_enabled)
|
||||
charger_enable(false);
|
||||
}
|
||||
|
||||
/* Start new charge cycle? This must be possible also in trickle/top-off, because when usb connected, */
|
||||
/* the trickle charge amount may not be enough */
|
||||
|
||||
if ((charge_state == 0) || (charge_state > 1))
|
||||
/* if battery is not full, enable charging */
|
||||
/* make sure charging starts if 1%-lazyness in battery_level_update() is too slow */
|
||||
if ( (battery_level() < charge_restart_level)
|
||||
|
@ -530,7 +535,7 @@ static void power_thread(void)
|
|||
power_history[i] = power_history[POWER_HISTORY_LEN-1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
/* charger not inserted */
|
||||
if (charge_state > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue