Ver código fonte

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

Yuri D'Elia 5 anos atrás
pai
commit
7f3ba499a0
1 arquivos alterados com 2 adições e 0 exclusões
  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;