mirror of
https://github.com/sjlongland/cluster-powerctl.git
synced 2025-09-13 12:03:14 +10:00
powerctl: In CHARGE_WAIT state, reset if battery improving.
This commit is contained in:
parent
dec958e9ca
commit
3969248610
@ -317,6 +317,12 @@ static void charge_wait() {
|
||||
/* Expire timer */
|
||||
t_charger = 0;
|
||||
|
||||
if (v_bn_adc > v_bl_adc) {
|
||||
/* Things are improving, so kill the warning */
|
||||
charger_warning = 0;
|
||||
t_cwarn = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
uart_tx_bool(STR_T_CHARGER, !t_charger);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user