1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 08:06:13 +01:00

EXRAIL PARSE

This commit is contained in:
Asbelos 2022-03-31 22:04:40 +01:00
parent 731d838e83
commit 7c1c6dafa1
3 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,7 @@
#undef ONDEACTIVATEL
#undef ONCLOSE
#undef ONTHROW
#undef PARSE
#undef PAUSE
#undef PIN_TURNOUT
#undef PRINT
@ -180,6 +181,7 @@
#define PAUSE
#define PIN_TURNOUT(id,pin,description...)
#define PRINT(msg)
#define PARSE(msg)
#define POM(cv,value)
#define POWEROFF
#define POWERON

View File

@ -71,6 +71,8 @@ void RMFT2::emitWithrottleDescriptions(Print * stream) {
const int StringMacroTracker1=__COUNTER__;
#undef BROADCAST
#define BROADCAST(msg) case (__COUNTER__ - StringMacroTracker1) : CommandDistributor::broadcastText(F(msg));break;
#undef PARSE
#define PARSE(msg) case (__COUNTER__ - StringMacroTracker1) : DCCEXParser::parse(F(msg));break;
#undef PRINT
#define PRINT(msg) case (__COUNTER__ - StringMacroTracker1) : printMessage2(F(msg));break;
#undef LCN
@ -231,6 +233,7 @@ const FLASH int16_t RMFT2::SignalDefinitions[] = {
#define POWEROFF OPCODE_POWEROFF,0,0,
#define POWERON OPCODE_POWERON,0,0,
#define PRINT(msg) OPCODE_PRINT,V(__COUNTER__ - StringMacroTracker2),
#define PARSE(msg) PRINT(msg)
#define READ_LOCO OPCODE_READ_LOCO1,0,0,OPCODE_READ_LOCO2,0,0,
#define RED(signal_id) OPCODE_RED,V(signal_id),
#define RESERVE(blockid) OPCODE_RESERVE,V(blockid),

View File

@ -6,8 +6,9 @@
#define VERSION "4.0.2"
// 4.0.2 EXRAIL additions:
// PARSE <> commands
// VIRTUAL_TURNOUT
// </KILL ALL> command to stop all tasks.
// </KILL ALL> and KILLALL command to stop all tasks.
// FORGET forgets the current loco in DCC reminder tables.
// Servo signals (SERVO_SIGNAL)
// High-On signal pins (SIGNALH)