|
@@ -5080,18 +5080,18 @@ void controllerFan()
|
5080
|
5080
|
if ((millis() - lastMotorCheck) >= 2500) //Not a time critical function, so we only check every 2500ms
|
5081
|
5081
|
{
|
5082
|
5082
|
lastMotorCheck = millis();
|
5083
|
|
-
|
5084
|
|
- if(!READ(X_ENABLE_PIN) || !READ(Y_ENABLE_PIN) || !READ(Z_ENABLE_PIN) || (soft_pwm_bed > 0)
|
|
5083
|
+
|
|
5084
|
+ if((READ(X_ENABLE_PIN) == (X_ENABLE_ON)) || (READ(Y_ENABLE_PIN) == (Y_ENABLE_ON)) || (READ(Z_ENABLE_PIN) == (Z_ENABLE_ON)) || (soft_pwm_bed > 0)
|
5085
|
5085
|
#if EXTRUDERS > 2
|
5086
|
|
- || !READ(E2_ENABLE_PIN)
|
|
5086
|
+ || (READ(E2_ENABLE_PIN) == (E_ENABLE_ON))
|
5087
|
5087
|
#endif
|
5088
|
5088
|
#if EXTRUDER > 1
|
5089
|
5089
|
#if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1
|
5090
|
|
- || !READ(X2_ENABLE_PIN)
|
|
5090
|
+ || (READ(X2_ENABLE_PIN) == (X_ENABLE_ON))
|
5091
|
5091
|
#endif
|
5092
|
|
- || !READ(E1_ENABLE_PIN)
|
|
5092
|
+ || (READ(E1_ENABLE_PIN) == (E_ENABLE_ON))
|
5093
|
5093
|
#endif
|
5094
|
|
- || !READ(E0_ENABLE_PIN)) //If any of the drivers are enabled...
|
|
5094
|
+ || (READ(E0_ENABLE_PIN) == (E_ENABLE_ON))) //If any of the drivers are enabled...
|
5095
|
5095
|
{
|
5096
|
5096
|
lastMotor = millis(); //... set time to NOW so the fan will turn on
|
5097
|
5097
|
}
|