From 71ef5387d4bff62e459766d77d432238df960596 Mon Sep 17 00:00:00 2001 From: Michael Balzer Date: Mon, 7 Oct 2019 15:14:24 +0200 Subject: [PATCH] - SimpleBMS template fix (thanks to @Kamsta99) --- examples/SimpleBMS/SimpleBMS.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SimpleBMS/SimpleBMS.ino b/examples/SimpleBMS/SimpleBMS.ino index cc39cc4..2534e34 100644 --- a/examples/SimpleBMS/SimpleBMS.ino +++ b/examples/SimpleBMS/SimpleBMS.ino @@ -104,7 +104,7 @@ void bmsEnterState(TwizyState currentState, TwizyState newState) { // void bmsTicker(unsigned int clockCnt) { - if (twizy.inState(Off) && (clockCnt % 100 == 0)) { + if (!twizy.inState(Off) && (clockCnt % 100 == 0)) { // per second: Serial.println(F("\nbmsTicker:"));