🚸 Emergency Parse M524 (#24761)

This commit is contained in:
Arkadiusz Miśkiewicz
2022-09-18 03:51:37 +02:00
committed by Scott Lahteine
parent aa28358267
commit 2fc97aa240
3 changed files with 28 additions and 1 deletions

View File

@ -1848,6 +1848,12 @@ void Temperature::task() {
emergency_parser.quickstop_by_M410 = false; // quickstop_stepper may call idle so clear this now!
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"));
}
#endif
if (!updateTemperaturesIfReady()) return; // Will also reset the watchdog if temperatures are ready