Update Marlin_main.cpp
This commit is contained in:
parent
62bd734612
commit
a5342c942e
1 changed files with 6 additions and 6 deletions
|
@ -5038,18 +5038,18 @@ void controllerFan()
|
||||||
if ((millis() - lastMotorCheck) >= 2500) //Not a time critical function, so we only check every 2500ms
|
if ((millis() - lastMotorCheck) >= 2500) //Not a time critical function, so we only check every 2500ms
|
||||||
{
|
{
|
||||||
lastMotorCheck = millis();
|
lastMotorCheck = millis();
|
||||||
|
|
||||||
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)
|
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)
|
||||||
#if EXTRUDERS > 2
|
#if EXTRUDERS > 2
|
||||||
|| (!READ(E2_ENABLE_PIN) ^ !(E_ENABLE_ON))
|
|| (READ(E2_ENABLE_PIN) == (E_ENABLE_ON))
|
||||||
#endif
|
#endif
|
||||||
#if EXTRUDER > 1
|
#if EXTRUDER > 1
|
||||||
#if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1
|
#if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1
|
||||||
|| (!READ(X2_ENABLE_PIN) ^ !(X_ENABLE_ON))
|
|| (READ(X2_ENABLE_PIN) == (X_ENABLE_ON))
|
||||||
#endif
|
#endif
|
||||||
|| (!READ(E1_ENABLE_PIN) ^ !(E_ENABLE_ON))
|
|| (READ(E1_ENABLE_PIN) == (E_ENABLE_ON))
|
||||||
#endif
|
#endif
|
||||||
|| (!READ(E0_ENABLE_PIN) ^ !(E_ENABLE_ON))) //If any of the drivers are enabled...
|
|| (READ(E0_ENABLE_PIN) == (E_ENABLE_ON))) //If any of the drivers are enabled...
|
||||||
{
|
{
|
||||||
lastMotor = millis(); //... set time to NOW so the fan will turn on
|
lastMotor = millis(); //... set time to NOW so the fan will turn on
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue