1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

SENDLOCO/START bug

This commit is contained in:
Asbelos 2021-08-16 16:30:30 +01:00
parent 7227a0696e
commit d8f23c58da
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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),