1
0
mirror of https://github.com/sjlongland/cluster-powerctl.git synced 2025-09-13 12:03:14 +10:00

powerctl: Use ADC units not MV

This commit is contained in:
Stuart Longland 2017-03-19 13:22:32 +10:00
parent 4a87ef25a4
commit 723d226399
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -302,7 +302,7 @@ static void charge_check() {
select_src(SRC_SOLAR);
/* As we have just started charging, reset warning timer */
exit_warning();
} else if (v_bn_adc <= (v_bl_adc + V_DELTA_MV)) {
} else if (v_bn_adc <= (v_bl_adc + V_DELTA_ADC)) {
/* Check for high voltage threshold, are we there yet? */
#ifdef DEBUG
uart_tx_bool(STR_V_BN_GE_V_H, v_bn_adc >= V_H_ADC);