Option to leave heaters set on SD abort (#14251)

This commit is contained in:
Kaushik Vemparala
2019-06-11 00:57:55 -04:00
committed by Scott Lahteine
parent 892f0e75ea
commit c88d9ae282
81 changed files with 245 additions and 1 deletions

View File

@ -972,6 +972,9 @@
// Enable this option to scroll long filenames in the SD card menu
//#define SCROLL_LONG_FILENAMES
// Leave the heaters on after Stop Print (not recommended!)
//#define SD_ABORT_NO_COOLDOWN
/**
* This option allows you to abort SD printing when any endstop is triggered.
* This feature must be enabled with "M540 S1" or from the LCD menu.

View File

@ -1131,6 +1131,7 @@ void loop() {
for (;;) {
#if ENABLED(SDSUPPORT)
card.checkautostart();
if (card.flag.abort_sd_printing) {
@ -1142,7 +1143,9 @@ void loop() {
clear_command_queue();
quickstop_stepper();
print_job_timer.stop();
thermalManager.disable_all_heaters();
#if DISABLED(SD_ABORT_NO_COOLDOWN)
thermalManager.disable_all_heaters();
#endif
thermalManager.zero_fan_speeds();
wait_for_heatup = false;
#if ENABLED(POWER_LOSS_RECOVERY)
@ -1152,6 +1155,7 @@ void loop() {
enqueue_and_echo_commands_P(PSTR(EVENT_GCODE_SD_STOP));
#endif
}
#endif // SDSUPPORT
if (commands_in_queue < BUFSIZE) get_available_commands();