From f3a09768e873a3f9706d0cf7a273e340f95a382a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 6 Feb 2018 20:29:57 -0600 Subject: [PATCH] Tweak early handling of M108/M112/M410 --- Marlin/Marlin_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index e577f4cb3b..ae54806203 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1114,15 +1114,15 @@ inline void get_serial_commands() { } #if DISABLED(EMERGENCY_PARSER) - // If command was e-stop process now + // Process critical commands early if (strcmp(command, "M108") == 0) { wait_for_heatup = false; - #if ENABLED(ULTIPANEL) + #if HAS_DISPLAY wait_for_user = false; #endif } if (strcmp(command, "M112") == 0) kill(PSTR(MSG_KILLED)); - if (strcmp(command, "M410") == 0) { quickstop_stepper(); } + if (strcmp(command, "M410") == 0) quickstop_stepper(); #endif #if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0