1
0
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:
Asbelos 2020-07-12 00:08:50 +01:00
parent ff881790ac
commit 2fbbbfc8bd

View File

@ -132,9 +132,8 @@ void DCCEXParser::parse(Print & stream, const byte *com, bool banAsync) {
asyncBanned=banAsync;
(void) EEPROM; // tell compiler not to warn thi is unused
int p[MAX_PARAMS];
while (com[0]=='<' || com[0]==' ') com++; // strip off any number of < or spaces
byte params=splitValues(p, com);
if (com[0]=='<') com++;
byte opcode=com[0];
if (filterCallback) filterCallback(stream,opcode,params,p);