SD Endstop Abort G-Code (#24461)

This commit is contained in:
ExtNeon
2022-08-06 23:37:03 +00:00
committed by Scott Lahteine
parent b02c3258b5
commit 7f2a836251
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