Skip to content

Commit

Permalink
EXTRAIL: Propagate a failed loco addr read to EXRAIL so it can be use…
Browse files Browse the repository at this point in the history
…d as IFLOCO(-1)
  • Loading branch information
habazut committed Sep 6, 2024
1 parent 7ffbd9d commit b026417
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions EXRAIL2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,11 +926,10 @@ void RMFT2::loop2() {
delayMe(100);
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;
speedo=0;
forward=true;
Expand Down

0 comments on commit b026417

Please sign in to comment.