1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Correct merge issues from master

This commit is contained in:
Asbelos 2022-03-07 18:46:29 +00:00
parent 4437f870b6
commit 7e3dcb8e8c
2 changed files with 2 additions and 8 deletions

View File

@ -808,12 +808,6 @@ void RMFT2::loop2() {
DCCWaveform::setJoin(false);
CommandDistributor::broadcastPower();
break;
case OPCODE_POWERON:
DCCWaveform::mainTrack.setPowerMode(POWERMODE::ON);
DCC::setProgTrackSyncMain(false);
CommandDistributor::broadcastPower();
break;
case OPCODE_UNJOIN:
DCCWaveform::setJoin(false);

View File

@ -542,8 +542,8 @@ void WiThrottle::getLocoCallback(int16_t locoid) {
char addcmd[20]={'M',stashThrottleChar,'+', addrchar};
itoa(locoid,addcmd+4,10);
stashInstance->multithrottle(stashStream, (byte *)addcmd);
DCCWaveform::progTrack.setPowerMode(POWERMODE::ON);
DCC::setProgTrackSyncMain(true); // <1 JOIN> so we can drive loco away
TrackManager::setMainPower(POWERMODE::ON);
DCCWaveform::setJoin(true); // <1 JOIN> so we can drive loco away
stashStream->commit();
CommandDistributor::broadcastPower();