From 2bc946edab9751d2f1b76da67922d9c14b153c3c Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Sun, 13 Feb 2022 12:43:34 +0100 Subject: [PATCH] Fix StopPrint when used before the actual print starts. --- Marlin/src/lcd/anycubic_touchscreen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index e2a1ed7d..6ab48c6b 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -498,6 +498,10 @@ void AnycubicTouchscreenClass::PausePrint() { inline void AnycubicTouchscreenClass::StopPrint() { card.abortFilePrintSoon(); + + print_job_timer.stop(); + thermalManager.disable_all_heaters(); + thermalManager.zero_fan_speeds(); #ifdef ANYCUBIC_TFT_DEBUG SERIAL_ECHOLNPGM("DEBUG: Stopped and cleared"); @@ -583,10 +587,6 @@ void AnycubicTouchscreenClass::ReheatNozzle() { } void AnycubicTouchscreenClass::ParkAfterStop(){ - - print_job_timer.stop(); - thermalManager.disable_all_heaters(); - thermalManager.zero_fan_speeds(); queue.enqueue_now_P(PSTR("M84")); // disable stepper motors queue.enqueue_now_P(PSTR("M27")); // force report of SD status