瀏覽代碼

Print fan automatically turns off after stop print

michalprusa 8 年之前
父節點
當前提交
ea197360ac
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Firmware/ultralcd.cpp

+ 5 - 0
Firmware/ultralcd.cpp

@@ -2720,6 +2720,11 @@ void lcd_sdcard_stop()
 				lcd_return_to_status();
 				lcd_ignore_click(true);
 				lcd_commands_type = LCD_COMMAND_STOP_PRINT;
+            
+                // Turn off the print fan
+                SET_OUTPUT(FAN_PIN);
+                WRITE(FAN_PIN, 0);
+                fanSpeed=0;
 		}
 	}