1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-04-20 20:21:18 +02:00

Compare commits

..

No commits in common. "911bbd63be2c8dcf2730ad96eb94a95fed4c0eee" and "d9bd1e75f23a64bdae36ad599743d3485df5f68e" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View File

@ -270,19 +270,15 @@ void DCCEXParser::parse(Print *stream, byte *com, RingStream *ringStream) {
// This function can get stings of the form "<C OMM AND>" or "C OMM AND>"
// found is true first after the leading "<" has been passed which results
// in parseOne() getting c="C OMM AND>"
byte *cForLater = NULL;
bool found = (com[0] != '<');
for (byte *c=com; c[0] != '\0'; c++) {
if (found) {
cForLater = c;
parseOne(stream, c, ringStream);
found=false;
}
if (c[0] == '<') {
if (cForLater) parseOne(stream, cForLater, ringStream);
if (c[0] == '<')
found = true;
}
}
if (cForLater) parseOne(stream, cForLater, ringStream);
}
void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)

View File

@ -3,8 +3,7 @@
#include "StringFormatter.h"
#define VERSION "5.4.6"
// 5.4.6 - Bugfix: Do not drop further commands in same packet
#define VERSION "5.4.5"
// 5.4.5 - ESP32: Better detection of correct IDF version
// - track power is always turned on after setJoin() not by setJoin()
// 5.4.4 - bugfix in parser, input buffer overrun and trailing > that did break <+>