Просмотр исходного кода

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

Thomas Moore 7 лет назад
Родитель
Сommit
acec237092
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      Marlin/ultralcd.cpp

+ 3
- 2
Marlin/ultralcd.cpp Просмотреть файл

@@ -702,8 +702,9 @@ void kill_screen(const char* lcd_msg) {
702 702
       clear_command_queue();
703 703
       quickstop_stepper();
704 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 708
       #endif
708 709
       wait_for_heatup = false;
709 710
       LCD_MESSAGEPGM(MSG_PRINT_ABORTED);

Загрузка…
Отмена
Сохранить