mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 10:06:13 +01:00
update for negative routes 5.2.22
update for negative routes 5.2.22
This commit is contained in:
commit
2ab2b614cd
|
@ -334,12 +334,14 @@ if (compileFeatures & FEATURE_SIGNAL) {
|
||||||
|
|
||||||
void RMFT2::setTurnoutHiddenState(Turnout * t) {
|
void RMFT2::setTurnoutHiddenState(Turnout * t) {
|
||||||
// turnout descriptions are in low flash F strings
|
// turnout descriptions are in low flash F strings
|
||||||
t->setHidden(GETFLASH(getTurnoutDescription(t->getId()))==0x01);
|
const FSH *desc = getTurnoutDescription(t->getId());
|
||||||
|
if (desc) t->setHidden(GETFLASH(desc)==0x01);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef IO_NO_HAL
|
#ifndef IO_NO_HAL
|
||||||
void RMFT2::setTurntableHiddenState(Turntable * tto) {
|
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
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (paramCount==2) { // <JA id>
|
if (paramCount==2) { // <JA id>
|
||||||
uint16_t id=p[1];
|
int16_t id=p[1];
|
||||||
StringFormatter::send(stream,F("<jA %d %c \"%S\">\n"),
|
StringFormatter::send(stream,F("<jA %d %c \"%S\">\n"),
|
||||||
id, getRouteType(id), getRouteDescription(id));
|
id, getRouteType(id), getRouteDescription(id));
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#define GITHUB_SHA "devel-202401081219Z"
|
#define GITHUB_SHA "devel-202401100719Z"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user