From ebabbbe59e07685fad80941b34440cd23ce68f78 Mon Sep 17 00:00:00 2001 From: Ash-4 <81280775+Ash-4@users.noreply.github.com> Date: Wed, 8 Sep 2021 14:06:39 -0500 Subject: [PATCH] pause program steps if OVERLOAD line added to pause program steps during OVERLOAD. case BASELINE if (DCCWaveform::progTrack.getPowerMode()==POWERMODE::OVERLOAD) return; -- also added a line in DCCWaveform.cpp --- DCC.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DCC.cpp b/DCC.cpp index 5165f72..f747362 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -757,6 +757,7 @@ void DCC::ackManagerLoop() { // (typically waiting for a reset counter or ACK waiting, or when all finished.) switch (opcode) { case BASELINE: + if (DCCWaveform::progTrack.getPowerMode()==POWERMODE::OVERLOAD) return; if (checkResets(DCCWaveform::progTrack.autoPowerOff || ackManagerRejoin ? 20 : 3)) return; DCCWaveform::progTrack.setAckBaseline(); callbackState=READY;