mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-11 13:21:01 +01:00
Parse with < bug
This commit is contained in:
parent
ff881790ac
commit
2fbbbfc8bd
@ -131,10 +131,9 @@ void DCCEXParser::parse(Print & stream, const byte *com, bool banAsync) {
|
|||||||
DIAG(F("\nPARSING:%s\n"),com);
|
DIAG(F("\nPARSING:%s\n"),com);
|
||||||
asyncBanned=banAsync;
|
asyncBanned=banAsync;
|
||||||
(void) EEPROM; // tell compiler not to warn thi is unused
|
(void) EEPROM; // tell compiler not to warn thi is unused
|
||||||
int p[MAX_PARAMS];
|
int p[MAX_PARAMS];
|
||||||
|
while (com[0]=='<' || com[0]==' ') com++; // strip off any number of < or spaces
|
||||||
byte params=splitValues(p, com);
|
byte params=splitValues(p, com);
|
||||||
|
|
||||||
if (com[0]=='<') com++;
|
|
||||||
byte opcode=com[0];
|
byte opcode=com[0];
|
||||||
|
|
||||||
if (filterCallback) filterCallback(stream,opcode,params,p);
|
if (filterCallback) filterCallback(stream,opcode,params,p);
|
||||||
|
Loading…
Reference in New Issue
Block a user