mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
clean result from invalid <JR n>
This commit is contained in:
parent
bef4b2ec35
commit
8b8e9e4919
|
@ -729,11 +729,15 @@ void DCCEXParser::parseOne(Print *stream, byte *com, RingStream * ringStream)
|
||||||
SENDFLASHLIST(stream,RMFT2::rosterIdList)
|
SENDFLASHLIST(stream,RMFT2::rosterIdList)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const FSH * functionNames= RMFT2::getRosterFunctions(id);
|
auto rosterName= RMFT2::getRosterName(id);
|
||||||
StringFormatter::send(stream,F(" %d \"%S\" \"%S\""),
|
if (!rosterName) rosterName=F("");
|
||||||
id, RMFT2::getRosterName(id),
|
|
||||||
functionNames == NULL ? RMFT2::getRosterFunctions(0) : functionNames);
|
auto functionNames= RMFT2::getRosterFunctions(id);
|
||||||
}
|
if (!functionNames) functionNames=RMFT2::getRosterFunctions(0);
|
||||||
|
if (!functionNames) functionNames=F("");
|
||||||
|
StringFormatter::send(stream,F(" %d \"%S\" \"%S\""),
|
||||||
|
id, rosterName, functionNames);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
StringFormatter::send(stream, F(">\n"));
|
StringFormatter::send(stream, F(">\n"));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user