mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
be consistent about that tripValue is already over limit
This commit is contained in:
parent
43b7b5d797
commit
827e4fef86
|
@ -313,7 +313,7 @@ void MotorDriver::checkPowerOverload(bool useProgLimit, byte trackno) {
|
||||||
lastCurrent = -lastCurrent;
|
lastCurrent = -lastCurrent;
|
||||||
setPower(POWERMODE::OVERLOAD); // Turn off, decide later how fast to turn on again
|
setPower(POWERMODE::OVERLOAD); // Turn off, decide later how fast to turn on again
|
||||||
if (commonFaultPin) {
|
if (commonFaultPin) {
|
||||||
if (lastCurrent <= tripValue) {
|
if (lastCurrent < tripValue) {
|
||||||
setPower(POWERMODE::ON); // maybe other track
|
setPower(POWERMODE::ON); // maybe other track
|
||||||
}
|
}
|
||||||
// Write this after the fact as we want to turn on as fast as possible
|
// Write this after the fact as we want to turn on as fast as possible
|
||||||
|
|
Loading…
Reference in New Issue
Block a user