1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

RTFM not the comments

Comments have a horrible habit of getting out of date.
This commit is contained in:
Asbelos
2020-06-07 20:11:44 +01:00
parent f2ee681479
commit 7a20896c8c
5 changed files with 59 additions and 232 deletions

View File

@@ -49,10 +49,13 @@ void Turnout::show(Stream & stream, int n){
}
}
void Turnout::showAll(Stream & stream){
bool Turnout::showAll(Stream & stream){
bool gotOne=false;
for(Turnout * tt=firstTurnout;tt!=NULL;tt=tt->nextTurnout){
StringParser::send(stream,F("<H %d %d %d %d>"), tt->data.id, tt->data.address, tt->data.subAddress, tt->data.tStatus);
}
gotOne=true;
}
return gotOne;
}