mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
fix EXRAIL CALL/RETURN
This commit is contained in:
parent
2469629cbb
commit
5e30740c5b
|
@ -440,6 +440,7 @@ void RMFT2::loop2() {
|
||||||
if (readSensor(operand)) {
|
if (readSensor(operand)) {
|
||||||
// reset timer to half a second and keep waiting
|
// reset timer to half a second and keep waiting
|
||||||
waitAfter=millis();
|
waitAfter=millis();
|
||||||
|
delayMe(50);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (millis()-waitAfter < 500 ) return;
|
if (millis()-waitAfter < 500 ) return;
|
||||||
|
@ -538,7 +539,7 @@ void RMFT2::loop2() {
|
||||||
kill(F("CALL stack"), stackDepth);
|
kill(F("CALL stack"), stackDepth);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
callStack[stackDepth++]=progCounter;
|
callStack[stackDepth++]=progCounter+3;
|
||||||
progCounter=locateRouteStart(operand);
|
progCounter=locateRouteStart(operand);
|
||||||
if (progCounter<0) kill(F("CALL unknown"),operand);
|
if (progCounter<0) kill(F("CALL unknown"),operand);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user