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

no need to estop repeatedly

This commit is contained in:
Harald Barth 2022-08-15 10:50:55 +02:00
parent 60d91eef9d
commit ff28dbd561

View File

@ -541,6 +541,7 @@ void WiThrottle::checkHeartbeat(RingStream * stream) {
if (myLocos[loco].throttle!='\0') {
if (Diag::WITHROTTLE) DIAG(F("%l eStopping cab %d"),millis(),myLocos[loco].cab);
DCC::setThrottle(myLocos[loco].cab, 1, DCC::getThrottleDirection(myLocos[loco].cab)); // speed 1 is eStop
heartBeat=millis(); // We have just stopped everyting, we don't need to do that again at next loop.
}
}
//haba no, not necessary the only throttle and it may come back