use handlers

This commit is contained in:
Scott Lahteine
2025-11-18 12:05:18 -06:00
parent 6ed3ea9a6b
commit 81a9eb27ad
+3 -3
View File
@@ -2362,18 +2362,18 @@ void Temperature::task() {
REMEMBER(mh, no_reentry, true);
#if ENABLED(EMERGENCY_PARSER)
if (emergency_parser.killed_by_M112) kill(FPSTR(M112_KILL_STR), nullptr, true);
if (emergency_parser.killed_by_M112) gcode.M112();
if (emergency_parser.quickstop_by_M410) {
emergency_parser.quickstop_by_M410 = false; // quickstop_stepper may call idle so clear this now!
quickstop_stepper();
gcode.M410();
}
#if HAS_MEDIA
if (emergency_parser.sd_abort_by_M524) { // abort SD print immediately
emergency_parser.sd_abort_by_M524 = false;
card.flag.abort_sd_printing = true;
gcode.process_subcommands_now(F("M524"));
gcode.M524();
}
#endif
#endif