Skip to content

Commit

Permalink
fix <JA /<JR confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Asbelos committed Nov 11, 2023
1 parent d877fc3 commit 4c89b26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion EXRAIL2Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -151,6 +151,9 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16
return;
}
break;
default:
break;
}
default: // other commands pass through
break;
}
Expand Down

0 comments on commit 4c89b26

Please sign in to comment.