Skip to content

Commit

Permalink
✏️ Followup for M524 (MarlinFirmware#24775)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and eoyilmaz committed Oct 17, 2022
1 parent 7f5fcc8 commit 42990bc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42990bc

Please sign in to comment.