diff --git a/RMFT2.cpp b/RMFT2.cpp index ea7b7c1..6324711 100644 --- a/RMFT2.cpp +++ b/RMFT2.cpp @@ -570,7 +570,7 @@ void RMFT2::loop2() { case OPCODE_START: { - int newPc=locateRouteStart(GET_OPERAND(1)); + int newPc=locateRouteStart(operand); if (newPc<0) break; new RMFT2(newPc); } diff --git a/RMFTMacros.h b/RMFTMacros.h index 652613a..2225426 100644 --- a/RMFTMacros.h +++ b/RMFTMacros.h @@ -228,7 +228,7 @@ const int StringMacroTracker1=__COUNTER__; #define RESUME OPCODE_RESUME,NOP, #define RETURN OPCODE_RETURN,NOP, #define REV(speed) OPCODE_REV,V(speed), -#define SENDLOCO(cab,route) OPCODE_START,V(cab),OPCODE_PAD,V(route), +#define SENDLOCO(cab,route) OPCODE_SENDLOCO,V(cab),OPCODE_PAD,V(route), #define START(route) OPCODE_START,V(route), #define SERVO(id,position,profile) OPCODE_SERVO,V(id),OPCODE_PAD,V(position),OPCODE_PAD,V(PCA9685::ProfileType::profile), #define SETLOCO(loco) OPCODE_SETLOCO,V(loco),