Ver código fonte

🐛 No HOTEND_LOOP with EXTRUDERS 0 (#22245)

Katelyn Schiesser 4 anos atrás
pai
commit
1f6768a87e
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      Marlin/src/feature/power.cpp

+ 4
- 1
Marlin/src/feature/power.cpp Ver arquivo

@@ -85,7 +85,10 @@ bool Power::is_power_needed() {
85 85
     #endif
86 86
   ) return true;
87 87
 
88
-  HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
88
+  #if HAS_HOTEND
89
+    HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
90
+  #endif
91
+
89 92
   if (TERN0(HAS_HEATED_BED, thermalManager.degTargetBed() > 0 || thermalManager.temp_bed.soft_pwm_amount > 0)) return true;
90 93
 
91 94
   #if HAS_HOTEND && AUTO_POWER_E_TEMP

Carregando…
Cancelar
Salvar