mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
Update TrackManager.cpp
Reverse logic in TM::IisPowerOn()
This commit is contained in:
parent
2f8e915b1e
commit
1ac104704e
|
@ -516,8 +516,8 @@ void TrackManager::setJoin(bool joined) {
|
|||
}
|
||||
|
||||
bool TrackManager::isPowerOn(byte t) {
|
||||
if (track[t]->getPower()==POWERMODE::ON)
|
||||
return true;
|
||||
if (track[t]->getPower()!=POWERMODE::ON)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user