1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

EXTRAIL: Propagate a failed loco addr read to EXRAIL so it can be used as IFLOCO(-1)

This commit is contained in:
Harald Barth 2024-09-06 09:28:40 +02:00
parent 7ffbd9d0e8
commit b026417efb

View File

@ -926,11 +926,10 @@ void RMFT2::loop2() {
delayMe(100); delayMe(100);
return; // still waiting for callback return; // still waiting for callback
} }
if (progtrackLocoId<0) {
kill(F("No Loco Found"),progtrackLocoId);
return; // still waiting for callback
}
// At failed read will result in loco == -1
// which is intended so it can be checked
// from within EXRAIL
loco=progtrackLocoId; loco=progtrackLocoId;
speedo=0; speedo=0;
forward=true; forward=true;