diff --git a/EXRAIL2.cpp b/EXRAIL2.cpp index 9efd98b..305be22 100644 --- a/EXRAIL2.cpp +++ b/EXRAIL2.cpp @@ -926,10 +926,10 @@ void RMFT2::loop2() { case OPCODE_ROUTE_HIDDEN: manageRouteState(operand,2); break; - case OPCODE_ROUTE_ACTIVE: + case OPCODE_ROUTE_INACTIVE: manageRouteState(operand,0); break; - case OPCODE_ROUTE_INACTIVE: + case OPCODE_ROUTE_ACTIVE: manageRouteState(operand,1); break; diff --git a/EXRAIL2Parser.cpp b/EXRAIL2Parser.cpp index 1a0aadb..be98409 100644 --- a/EXRAIL2Parser.cpp +++ b/EXRAIL2Parser.cpp @@ -121,7 +121,6 @@ void RMFT2::ComandFilter(Print * stream, byte & opcode, byte & paramCount, int16 break; 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]) { case HASH_KEYWORD_A: // returns automations/routes