From 827e4fef86752486ce7256ba0cf8de65a849c358 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Mon, 22 Aug 2022 08:48:33 +0200 Subject: [PATCH] be consistent about that tripValue is already over limit --- MotorDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MotorDriver.cpp b/MotorDriver.cpp index 9fdb26f..8901fba 100644 --- a/MotorDriver.cpp +++ b/MotorDriver.cpp @@ -313,7 +313,7 @@ void MotorDriver::checkPowerOverload(bool useProgLimit, byte trackno) { lastCurrent = -lastCurrent; setPower(POWERMODE::OVERLOAD); // Turn off, decide later how fast to turn on again if (commonFaultPin) { - if (lastCurrent <= tripValue) { + if (lastCurrent < tripValue) { setPower(POWERMODE::ON); // maybe other track } // Write this after the fact as we want to turn on as fast as possible