소스 검색

Do not wait forever if the heater on the extruder is disabled

Yuri D'Elia 5 년 전
부모
커밋
7f3ba499a0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Firmware/Marlin_main.cpp

+ 2 - 0
Firmware/Marlin_main.cpp

@@ -8864,6 +8864,8 @@ void delay_keep_alive(unsigned int ms)
 }
 
 static void wait_for_heater(long codenum, uint8_t extruder) {
+    if (!degTargetHotend(extruder))
+        return;
 
 #ifdef TEMP_RESIDENCY_TIME
 	long residencyStart;