1
0
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:
Colin Murdoch 2023-09-05 20:52:18 +01:00
parent 2f8e915b1e
commit 1ac104704e

View File

@ -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;
}