mirror of
https://github.com/sjlongland/cluster-powerctl.git
synced 2025-09-13 12:03:14 +10:00
powerctl: Don't change warning state in check.
Doing so causes flapping that is unable to be resolved by timers.
This commit is contained in:
parent
c2e6915996
commit
8a27a8df8f
10
powerctl.c
10
powerctl.c
@ -340,16 +340,6 @@ static void charge_wait() {
|
||||
/* Expire timer */
|
||||
t_charger = 0;
|
||||
|
||||
if (!t_cwarn) {
|
||||
if (v_bn_adc > v_bl_adc) {
|
||||
/* Things are improving, so kill the warning */
|
||||
exit_warning();
|
||||
} else {
|
||||
/* Not improving, and timer is expired */
|
||||
enter_warning();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
uart_tx_bool(STR_T_CHARGER, !t_charger);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user