diff --git a/EXRAIL2.h b/EXRAIL2.h index e3d9007..785267a 100644 --- a/EXRAIL2.h +++ b/EXRAIL2.h @@ -45,7 +45,10 @@ enum OPCODE : byte {OPCODE_THROW,OPCODE_CLOSE, OPCODE_RED,OPCODE_GREEN,OPCODE_AMBER,OPCODE_DRIVE, OPCODE_SERVO,OPCODE_SIGNAL,OPCODE_TURNOUT,OPCODE_WAITFOR, OPCODE_PAD,OPCODE_FOLLOW,OPCODE_CALL,OPCODE_RETURN, - OPCODE_JOIN,OPCODE_UNJOIN,OPCODE_READ_LOCO1,OPCODE_READ_LOCO2,OPCODE_POM, + OPCODE_JOIN,OPCODE_UNJOIN,OPCODE_READ_LOCO1,OPCODE_READ_LOCO2, +#ifndef DISABLE_PROG + OPCODE_POM, +#endif OPCODE_START,OPCODE_SETLOCO,OPCODE_SENDLOCO,OPCODE_FORGET, OPCODE_PAUSE, OPCODE_RESUME,OPCODE_POWEROFF,OPCODE_POWERON, OPCODE_ONCLOSE, OPCODE_ONTHROW, OPCODE_SERVOTURNOUT, OPCODE_PINTURNOUT, diff --git a/EXRAIL2MacroReset.h b/EXRAIL2MacroReset.h index 5c047da..17a328e 100644 --- a/EXRAIL2MacroReset.h +++ b/EXRAIL2MacroReset.h @@ -101,7 +101,9 @@ #undef PAUSE #undef PIN_TURNOUT #undef PRINT +#ifndef DISABLE_PROG #undef POM +#endif #undef POWEROFF #undef POWERON #undef READ_LOCO @@ -223,7 +225,9 @@ #define PIN_TURNOUT(id,pin,description...) #define PRINT(msg) #define PARSE(msg) +#ifndef DISABLE_PROG #define POM(cv,value) +#endif #define POWEROFF #define POWERON #define READ_LOCO diff --git a/EXRAILMacros.h b/EXRAILMacros.h index c6846c0..a67f86c 100644 --- a/EXRAILMacros.h +++ b/EXRAILMacros.h @@ -326,7 +326,9 @@ const HIGHFLASH int16_t RMFT2::SignalDefinitions[] = { #define ONCHANGE(sensor_id) OPCODE_ONCHANGE,V(sensor_id), #define PAUSE OPCODE_PAUSE,0,0, #define PIN_TURNOUT(id,pin,description...) OPCODE_PINTURNOUT,V(id),OPCODE_PAD,V(pin), +#ifndef DISABLE_PROG #define POM(cv,value) OPCODE_POM,V(cv),OPCODE_PAD,V(value), +#endif #define POWEROFF OPCODE_POWEROFF,0,0, #define POWERON OPCODE_POWERON,0,0, #define PRINT(msg) OPCODE_PRINT,V(__COUNTER__ - StringMacroTracker2),