Explorar el Código

Additional patch for no heated bed

Scott Lahteine hace 7 años
padre
commit
b337698f96
Se han modificado 2 ficheros con 8 adiciones y 3 borrados
  1. 4
    1
      Marlin/src/feature/controllerfan.cpp
  2. 4
    2
      Marlin/src/feature/power.cpp

+ 4
- 1
Marlin/src/feature/controllerfan.cpp Ver fichero

@@ -35,7 +35,10 @@ void controllerfan_update() {
35 35
   const millis_t ms = millis();
36 36
   if (ELAPSED(ms, nextMotorCheck)) {
37 37
     nextMotorCheck = ms + 2500UL; // Not a time critical function, so only check every 2.5s
38
-    if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON || thermalManager.soft_pwm_amount_bed > 0
38
+    if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON
39
+      #if HAS_HEATED_BED
40
+        || thermalManager.soft_pwm_amount_bed > 0
41
+      #endif
39 42
         || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
40 43
         #if E_STEPPERS > 1
41 44
           || E1_ENABLE_READ == E_ENABLE_ON

+ 4
- 2
Marlin/src/feature/power.cpp Ver fichero

@@ -50,8 +50,10 @@ bool Power::is_power_needed() {
50 50
     if (controllerFanSpeed > 0) return true;
51 51
   #endif
52 52
 
53
-  if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON ||
54
-      thermalManager.soft_pwm_amount_bed > 0
53
+  if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON
54
+    #if HAS_HEATED_BED
55
+      || thermalManager.soft_pwm_amount_bed > 0
56
+    #endif
55 57
       || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
56 58
       #if E_STEPPERS > 1
57 59
         || E1_ENABLE_READ == E_ENABLE_ON

Loading…
Cancelar
Guardar