Tweak early handling of M108/M112/M410

This commit is contained in:
Scott Lahteine
2018-02-06 20:29:57 -06:00
parent 9509568b7e
commit f3a09768e8

View File

@@ -1114,15 +1114,15 @@ inline void get_serial_commands() {
} }
#if DISABLED(EMERGENCY_PARSER) #if DISABLED(EMERGENCY_PARSER)
// If command was e-stop process now // Process critical commands early
if (strcmp(command, "M108") == 0) { if (strcmp(command, "M108") == 0) {
wait_for_heatup = false; wait_for_heatup = false;
#if ENABLED(ULTIPANEL) #if HAS_DISPLAY
wait_for_user = false; wait_for_user = false;
#endif #endif
} }
if (strcmp(command, "M112") == 0) kill(PSTR(MSG_KILLED)); if (strcmp(command, "M112") == 0) kill(PSTR(MSG_KILLED));
if (strcmp(command, "M410") == 0) { quickstop_stepper(); } if (strcmp(command, "M410") == 0) quickstop_stepper();
#endif #endif
#if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0 #if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0