mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-21 12:31:19 +02:00
Compare commits
No commits in common. "911bbd63be2c8dcf2730ad96eb94a95fed4c0eee" and "d9bd1e75f23a64bdae36ad599743d3485df5f68e" have entirely different histories.
911bbd63be
...
d9bd1e75f2
@ -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>"
|
// 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
|
// found is true first after the leading "<" has been passed which results
|
||||||
// in parseOne() getting c="C OMM AND>"
|
// in parseOne() getting c="C OMM AND>"
|
||||||
byte *cForLater = NULL;
|
|
||||||
bool found = (com[0] != '<');
|
bool found = (com[0] != '<');
|
||||||
for (byte *c=com; c[0] != '\0'; c++) {
|
for (byte *c=com; c[0] != '\0'; c++) {
|
||||||
if (found) {
|
if (found) {
|
||||||
cForLater = c;
|
parseOne(stream, c, ringStream);
|
||||||
found=false;
|
found=false;
|
||||||
}
|
}
|
||||||
if (c[0] == '<') {
|
if (c[0] == '<')
|
||||||
if (cForLater) parseOne(stream, cForLater, ringStream);
|
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (cForLater) parseOne(stream, cForLater, ringStream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)
|
void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
#define VERSION "5.4.6"
|
#define VERSION "5.4.5"
|
||||||
// 5.4.6 - Bugfix: Do not drop further commands in same packet
|
|
||||||
// 5.4.5 - ESP32: Better detection of correct IDF version
|
// 5.4.5 - ESP32: Better detection of correct IDF version
|
||||||
// - track power is always turned on after setJoin() not by setJoin()
|
// - 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 <+>
|
// 5.4.4 - bugfix in parser, input buffer overrun and trailing > that did break <+>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user