1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 08:06:13 +01:00

fix <JA /<JR confusion

This commit is contained in:
Asbelos 2023-11-11 09:12:08 +00:00
parent d877fc315e
commit 4c89b26c79

View File

@ -123,7 +123,7 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
case 'J': // throttle info commands
// This entire code block is compiled out if FEATURE_ROUTESTATE macros not used
if (paramCount<1) return;
switch(p[0])
switch(p[0]) {
case HASH_KEYWORD_A: // <JA> returns automations/routes
if (paramCount==1) {// <JA>
StringFormatter::send(stream, F("<jA"));
@ -151,6 +151,9 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
return;
}
break;
default:
break;
}
default: // other commands pass through
break;
}