1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

be consistent about that tripValue is already over limit

This commit is contained in:
Harald Barth 2022-08-22 08:48:33 +02:00
parent 43b7b5d797
commit 827e4fef86

View File

@ -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