From 2fbbbfc8bd085f3c26b77d19f7841b3a4964e423 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Sun, 12 Jul 2020 00:08:50 +0100 Subject: [PATCH] Parse with < bug --- DCCEXParser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index ff16c57..48dd364 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -131,10 +131,9 @@ void DCCEXParser::parse(Print & stream, const byte *com, bool banAsync) { DIAG(F("\nPARSING:%s\n"),com); asyncBanned=banAsync; (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); - - if (com[0]=='<') com++; byte opcode=com[0]; if (filterCallback) filterCallback(stream,opcode,params,p);