From c21aadf0cbe44b177f333952bb27d5c31bec03f4 Mon Sep 17 00:00:00 2001 From: Robin Dunlop Date: Sun, 27 Sep 2020 09:12:13 -0500 Subject: [PATCH] Read the Current when setting offsetCC. Was incorrectly reading the Voltage for both the offset voltage and the offset current --- code/Raindancer/chargeSystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Raindancer/chargeSystem.h b/code/Raindancer/chargeSystem.h index a6c6e15..5cec0ea 100644 --- a/code/Raindancer/chargeSystem.h +++ b/code/Raindancer/chargeSystem.h @@ -173,7 +173,7 @@ class TchargeSystem : public Protothread { errorHandler.setInfo(F("!03,ChargeSystem measure offsetCC\r\n")); errorHandler.setInfo(F("!03,")); - offsetCC = aiCHARGEVOLTAGE.measureOffsetVoltage(); + offsetCC = aiCHARGECURRENT.measureOffsetVoltage(); errorHandler.setInfo(F(" offsetCC: %f\r\n"), offsetCC); }