1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 09:53:45 +02:00

Starting, very broken

This commit is contained in:
peteGSX
2023-08-20 19:26:04 +10:00
parent 9f38dae8ba
commit 1491da4813
7 changed files with 382 additions and 6 deletions

View File

@@ -161,6 +161,10 @@ void CommandDistributor::broadcastTurnout(int16_t id, bool isClosed ) {
#endif
}
void CommandDistributor::broadcastTurntable(int16_t id, uint8_t position) {
broadcastReply(COMMAND_TYPE, F("<i %d %d>\n"), id, position);
}
void CommandDistributor::broadcastClockTime(int16_t time, int8_t rate) {
// The JMRI clock command is of the form : PFT65871<;>4
// The CS broadcast is of the form "<jC mmmm nn" where mmmm is time minutes and dd speed