mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56: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) {
|
bool TrackManager::isPowerOn(byte t) {
|
||||||
if (track[t]->getPower()==POWERMODE::ON)
|
if (track[t]->getPower()!=POWERMODE::ON)
|
||||||
return true;
|
return false;
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user