Browse Source

Additional patch for no heated bed

Scott Lahteine 7 years ago
parent
commit
b337698f96
2 changed files with 8 additions and 3 deletions
  1. 4
    1
      Marlin/src/feature/controllerfan.cpp
  2. 4
    2
      Marlin/src/feature/power.cpp

+ 4
- 1
Marlin/src/feature/controllerfan.cpp View File

35
   const millis_t ms = millis();
35
   const millis_t ms = millis();
36
   if (ELAPSED(ms, nextMotorCheck)) {
36
   if (ELAPSED(ms, nextMotorCheck)) {
37
     nextMotorCheck = ms + 2500UL; // Not a time critical function, so only check every 2.5s
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
         || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
42
         || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
40
         #if E_STEPPERS > 1
43
         #if E_STEPPERS > 1
41
           || E1_ENABLE_READ == E_ENABLE_ON
44
           || E1_ENABLE_READ == E_ENABLE_ON

+ 4
- 2
Marlin/src/feature/power.cpp View File

50
     if (controllerFanSpeed > 0) return true;
50
     if (controllerFanSpeed > 0) return true;
51
   #endif
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
       || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
57
       || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
56
       #if E_STEPPERS > 1
58
       #if E_STEPPERS > 1
57
         || E1_ENABLE_READ == E_ENABLE_ON
59
         || E1_ENABLE_READ == E_ENABLE_ON

Loading…
Cancel
Save