mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
</ROUTES> cmd for JMRI/Withrottle
This commit is contained in:
parent
161b35ae84
commit
8b498b8b49
|
@ -36,6 +36,7 @@ const int16_t HASH_KEYWORD_UNLATCH=1353;
|
||||||
const int16_t HASH_KEYWORD_PAUSE=-4142;
|
const int16_t HASH_KEYWORD_PAUSE=-4142;
|
||||||
const int16_t HASH_KEYWORD_RESUME=27609;
|
const int16_t HASH_KEYWORD_RESUME=27609;
|
||||||
const int16_t HASH_KEYWORD_KILL=5218;
|
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.
|
// 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.
|
// Each thread manages a loco on a journey through the layout, and/or may manage a scenery automation.
|
||||||
|
@ -193,6 +194,13 @@ bool RMFT2::parseSlash(Print * stream, byte & paramCount, int16_t p[]) {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case HASH_KEYWORD_ROUTES: // </ ROUTES > JMRI withrottle support
|
||||||
|
if (paramCount>1) return false;
|
||||||
|
StringFormatter::send(stream,F("</ROUTES "));
|
||||||
|
emitWithrottleRouteList(stream);
|
||||||
|
StringFormatter::send(stream,F(">"));
|
||||||
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user