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 Andy-Big committed Jul 2, 2023
1 parent 32dd893 commit 7c34da2
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 @@ -1864,11 +1864,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 7c34da2

Please sign in to comment.