From 8b498b8b495063d1ae40c2b70a1e528964144ae4 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Tue, 24 Aug 2021 09:45:11 +0100 Subject: [PATCH] cmd for JMRI/Withrottle --- RMFT2.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/RMFT2.cpp b/RMFT2.cpp index 1ccedf9..13627bd 100644 --- a/RMFT2.cpp +++ b/RMFT2.cpp @@ -36,6 +36,7 @@ const int16_t HASH_KEYWORD_UNLATCH=1353; const int16_t HASH_KEYWORD_PAUSE=-4142; const int16_t HASH_KEYWORD_RESUME=27609; const int16_t HASH_KEYWORD_KILL=5218; +const int16_t HASH_KEYWORD_ROUTES=-3702; // One instance of RMFT clas is used for each "thread" in the automation. // Each thread manages a loco on a journey through the layout, and/or may manage a scenery automation. @@ -192,7 +193,14 @@ bool RMFT2::parseSlash(Print * stream, byte & paramCount, int16_t p[]) { task->loco=cab; } return true; - + + case HASH_KEYWORD_ROUTES: // JMRI withrottle support + if (paramCount>1) return false; + StringFormatter::send(stream,F("")); + return true; + default: break; }