SD Endstop Abort G-Code (#24461)

This commit is contained in:
ExtNeon
2022-08-06 23:37:03 +00:00
committed by GitHub
parent 9c86ca3a19
commit 53b202cf9d
2 changed files with 7 additions and 0 deletions

View File

@@ -551,6 +551,10 @@ void Endstops::event_handler() {
card.abortFilePrintNow();
quickstop_stepper();
thermalManager.disable_all_heaters();
#ifdef SD_ABORT_ON_ENDSTOP_HIT_GCODE
queue.clear();
queue.inject(F(SD_ABORT_ON_ENDSTOP_HIT_GCODE));
#endif
print_job_timer.stop();
}
#endif