Skip to content

Commit

Permalink
update for negative routes 5.2.22
Browse files Browse the repository at this point in the history
update for negative routes 5.2.22
  • Loading branch information
Ash-4 authored Jan 10, 2024
2 parents 8e56a1e + 796d5c4 commit 2ab2b61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions EXRAIL2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,15 @@ if (compileFeatures & FEATURE_SIGNAL) {
}

void RMFT2::setTurnoutHiddenState(Turnout * t) {
// turnout descriptions are in low flash F strings
t->setHidden(GETFLASH(getTurnoutDescription(t->getId()))==0x01);
// turnout descriptions are in low flash F strings
const FSH *desc = getTurnoutDescription(t->getId());
if (desc) t->setHidden(GETFLASH(desc)==0x01);
}

#ifndef IO_NO_HAL
void RMFT2::setTurntableHiddenState(Turntable * tto) {
tto->setHidden(GETFLASH(getTurntableDescription(tto->getId()))==0x01);
const FSH *desc = getTurntableDescription(tto->getId());
if (desc) tto->setHidden(GETFLASH(desc)==0x01);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion EXRAIL2Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
return;
}
if (paramCount==2) { // <JA id>
uint16_t id=p[1];
int16_t id=p[1];
StringFormatter::send(stream,F("<jA %d %c \"%S\">\n"),
id, getRouteType(id), getRouteDescription(id));

Expand Down
2 changes: 1 addition & 1 deletion GITHUB_SHA.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define GITHUB_SHA "devel-202401081219Z"
#define GITHUB_SHA "devel-202401100719Z"

0 comments on commit 2ab2b61

Please sign in to comment.