diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index b52a968..8a96e23 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -318,6 +318,8 @@ void DCCEXParser::parse(Print *stream, byte *com, bool blocking) { DCCWaveform::mainTrack.setPowerMode(mode); DCCWaveform::progTrack.setPowerMode(mode); + if (mode == POWERMODE::OFF) + DCC::setProgTrackBoost(false); // Prog track boost mode will not outlive prog track off StringFormatter::send(stream, F("
"), opcode); return; } @@ -330,6 +332,8 @@ void DCCEXParser::parse(Print *stream, byte *com, bool blocking) case HASH_KEYWORD_PROG: DCCWaveform::progTrack.setPowerMode(mode); + if (mode == POWERMODE::OFF) + DCC::setProgTrackBoost(false); // Prog track boost mode will not outlive prog track off StringFormatter::send(stream, F("
"), opcode); return; case HASH_KEYWORD_JOIN: