mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
Turnout status display bug
This commit is contained in:
parent
a915331103
commit
57178dac4d
@ -79,7 +79,7 @@ void Turnout::show(Print & stream, int n){
|
|||||||
bool Turnout::showAll(Print & stream){
|
bool Turnout::showAll(Print & stream){
|
||||||
bool gotOne=false;
|
bool gotOne=false;
|
||||||
for(Turnout * tt=firstTurnout;tt!=NULL;tt=tt->nextTurnout){
|
for(Turnout * tt=firstTurnout;tt!=NULL;tt=tt->nextTurnout){
|
||||||
StringFormatter::send(stream,F("<H %d %d %d %d>"), tt->data.id, tt->data.address, tt->data.subAddress, tt->data.tStatus);
|
StringFormatter::send(stream,F("<H %d %d %d %d>"), tt->data.id, tt->data.address, tt->data.subAddress, (tt->data.tStatus & STATUS_ACTIVE)!=0);
|
||||||
gotOne=true;
|
gotOne=true;
|
||||||
}
|
}
|
||||||
return gotOne;
|
return gotOne;
|
||||||
|
Loading…
Reference in New Issue
Block a user