mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-20 20:21:18 +02:00
Compare commits
2 Commits
d9bd1e75f2
...
911bbd63be
Author | SHA1 | Date | |
---|---|---|---|
|
911bbd63be | ||
|
393b0bbd16 |
@ -270,16 +270,20 @@ 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) {
|
||||||
parseOne(stream, c, ringStream);
|
cForLater = c;
|
||||||
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,7 +3,8 @@
|
|||||||
|
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
#define VERSION "5.4.5"
|
#define VERSION "5.4.6"
|
||||||
|
// 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