✏️ Followup for M524 (#24775)

Followup to #24761
This commit is contained in:
ellensp 2022-09-27 10:25:54 +13:00 committed by Scott Lahteine
parent f1a05d19b0
commit e44f156535

View File

@ -1849,11 +1849,13 @@ void Temperature::task() {
quickstop_stepper(); quickstop_stepper();
} }
if (emergency_parser.sd_abort_by_M524) { // abort SD print immediately #if ENABLED(SDSUPPORT)
emergency_parser.sd_abort_by_M524 = false; if (emergency_parser.sd_abort_by_M524) { // abort SD print immediately
card.flag.abort_sd_printing = true; emergency_parser.sd_abort_by_M524 = false;
gcode.process_subcommands_now(F("M524")); card.flag.abort_sd_printing = true;
} gcode.process_subcommands_now(F("M524"));
}
#endif
#endif #endif
if (!updateTemperaturesIfReady()) return; // Will also reset the watchdog if temperatures are ready if (!updateTemperaturesIfReady()) return; // Will also reset the watchdog if temperatures are ready