Explorar o código

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

Yuri D'Elia %!s(int64=5) %!d(string=hai) anos
pai
achega
7f3ba499a0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;