1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-27 06:11:25 +01:00

Merge pull request #333 from mstevetodd/master

Fix: turnout state should be 2/4, not T2/T4
This commit is contained in:
mstevetodd 2023-04-25 16:06:10 -04:00 committed by GitHub
commit fcf05206b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}