Skip to content

Commit

Permalink
Merge pull request #333 from mstevetodd/master
Browse files Browse the repository at this point in the history
Fix: turnout state should be 2/4, not T2/T4
  • Loading branch information
mstevetodd authored Apr 25, 2023
2 parents 91d36ae + cc3aba1 commit fcf0520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WiThrottle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void WiThrottle::parse(RingStream * stream, byte * cmdx) {
#endif
char tchar=Turnout::isClosed(id)?'2':'4';
if (tdesc==NULL) // turnout with no description
StringFormatter::send(stream,F("]\\[%d}|{T%d}|{T%c"), id,id,tchar);
StringFormatter::send(stream,F("]\\[%d}|{T%d}|{%c"), id,id,tchar);
else
StringFormatter::send(stream,F("]\\[%d}|{%S}|{%c"), id,tdesc,tchar);
}
Expand Down

0 comments on commit fcf0520

Please sign in to comment.