✏️ Followup for M524 (#24775)

Followup to #24761
This commit is contained in:
ellensp 2022-09-27 10:25:54 +13:00 committed by GitHub
parent 6f68942e83
commit 8aa3273242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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