1
0
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:
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) { 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;
} }