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

Implement # command

This commit is contained in:
Harald Barth
2020-07-04 21:53:44 +02:00
parent a2636b1296
commit 0a3d2e7595
2 changed files with 7 additions and 3 deletions

View File

@@ -250,6 +250,10 @@ void DCCEXParser::parse(Print & stream, const byte *com, bool banAsync) {
DCC::setDebug(p[0]==1);
DIAG(F("\nDCC DEBUG MODE %d"),p[0]==1);
return;
case '#': // NUMBER OF LOCOSLOTS <#>
StringFormatter::send(stream,F("<# %d>"), MAX_LOCOS);
return;
default: //anything else will drop out to <X>
break;