1
0
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:
Stuart Longland 2017-03-19 12:36:45 +10:00
parent c2e6915996
commit 8a27a8df8f
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -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