Browse Source

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

Thomas Moore 7 years ago
parent
commit
acec237092
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/ultralcd.cpp

+ 3
- 2
Marlin/ultralcd.cpp View File

702
       clear_command_queue();
702
       clear_command_queue();
703
       quickstop_stepper();
703
       quickstop_stepper();
704
       print_job_timer.stop();
704
       print_job_timer.stop();
705
-      #if ENABLED(AUTOTEMP)
706
-        thermalManager.autotempShutdown();
705
+      thermalManager.disable_all_heaters();
706
+      #if FAN_COUNT > 0
707
+        for (uint8_t i = 0; i < FAN_COUNT; i++) fanSpeeds[i] = 0;
707
       #endif
708
       #endif
708
       wait_for_heatup = false;
709
       wait_for_heatup = false;
709
       LCD_MESSAGEPGM(MSG_PRINT_ABORTED);
710
       LCD_MESSAGEPGM(MSG_PRINT_ABORTED);

Loading…
Cancel
Save