✏️ 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();
}
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"));
}
#if ENABLED(SDSUPPORT)
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"));
}
#endif
#endif
if (!updateTemperaturesIfReady()) return; // Will also reset the watchdog if temperatures are ready