Shutdown heaters and fan after canceling a print from the SD card

This commit is contained in:
Thomas Moore 2017-05-02 18:41:26 -05:00 committed by Scott Lahteine
parent e1b85ff67b
commit acec237092

View File

@ -702,8 +702,9 @@ void kill_screen(const char* lcd_msg) {
clear_command_queue(); clear_command_queue();
quickstop_stepper(); quickstop_stepper();
print_job_timer.stop(); print_job_timer.stop();
#if ENABLED(AUTOTEMP) thermalManager.disable_all_heaters();
thermalManager.autotempShutdown(); #if FAN_COUNT > 0
for (uint8_t i = 0; i < FAN_COUNT; i++) fanSpeeds[i] = 0;
#endif #endif
wait_for_heatup = false; wait_for_heatup = false;
LCD_MESSAGEPGM(MSG_PRINT_ABORTED); LCD_MESSAGEPGM(MSG_PRINT_ABORTED);