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

Add #ifdef selections

Add #ifdef selections linked to #define in config.exampe.h
This commit is contained in:
Colin Murdoch
2023-01-16 18:16:25 +00:00
parent 873d470f86
commit 8fac20a451
9 changed files with 49 additions and 12 deletions

View File

@@ -155,6 +155,7 @@ void CommandDistributor::broadcastTurnout(int16_t id, bool isClosed ) {
#endif
}
#ifdef USEFASTCLOCK
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
@@ -165,6 +166,7 @@ void CommandDistributor::broadcastClockTime(int16_t time, int8_t rate) {
broadcastReply(WITHROTTLE_TYPE, F("PFT%d<;>%d\n"), time*60, rate);
#endif
}
#endif
void CommandDistributor::broadcastLoco(byte slot) {
DCC::LOCO * sp=&DCC::speedTable[slot];