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

Added AFTEROVERLOAD

Added the AFTEROVERLOAD option - as yet untested.
This commit is contained in:
Colin Murdoch
2023-09-05 12:21:09 +01:00
parent 6392c74ead
commit 2f8e915b1e
6 changed files with 28 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
/*
* © 2022 Chris Harlow
* © 2022 Harald Barth
* © 2023 Colin Murdoch
* All rights reserved.
*
* This file is part of DCC++EX
@@ -513,3 +514,10 @@ void TrackManager::setJoin(bool joined) {
progTrackSyncMain=joined;
if (joinRelay!=UNUSED_PIN) digitalWrite(joinRelay,joined?HIGH:LOW);
}
bool TrackManager::isPowerOn(byte t) {
if (track[t]->getPower()==POWERMODE::ON)
return true;
return false;
}