From 723d22639965e5560359b6a56513cacfd8100cbd Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Sun, 19 Mar 2017 13:22:32 +1000 Subject: [PATCH] powerctl: Use ADC units not MV --- powerctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerctl.c b/powerctl.c index 0fc4135..9689938 100644 --- a/powerctl.c +++ b/powerctl.c @@ -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);