diff options
author | blddk <michael.andresen@gmail.com> | 2011-10-16 16:26:08 +0300 |
---|---|---|
committer | blddk <michael.andresen@gmail.com> | 2011-10-16 16:26:08 +0300 |
commit | cc1bb0fc0825ca7997b3c21ae744972a1b22a6f9 (patch) | |
tree | f657a0a79675b699b685aab9958ed5e193a8c7cd | |
parent | c62f9388144c6723541e26a9cdf4e0e7c9f234aa (diff) |
Update Sprinter/Sprinter.pde
-rw-r--r-- | Sprinter/Sprinter.pde | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde index 8124f00..9b694fd 100644 --- a/Sprinter/Sprinter.pde +++ b/Sprinter/Sprinter.pde @@ -1455,18 +1455,18 @@ void controllerFan() { lastMotorCheck = millis(); - if(!digitalRead(X_ENABLE_PIN) || !digitalRead(Y_ENABLE_PIN) || !digitalRead(Z_ENABLE_PIN) || !digitalRead(E_ENABLE_PIN)) //If any of the drivers are enabled... + if(!READ(X_ENABLE_PIN) || !READ(Y_ENABLE_PIN) || !READ(Z_ENABLE_PIN) || !READ(E_ENABLE_PIN)) //If any of the drivers are enabled... { lastMotor = millis(); //... set time to NOW so the fan will turn on } if ((millis() - lastMotor) >= (CONTROLLERFAN_SEC*1000) || lastMotor == 0) //If the last time any driver was enabled, is longer since than CONTROLLERSEC... { - digitalWrite(CONTROLLERFAN_PIN, LOW); //... turn the fan off + WRITE(CONTROLLERFAN_PIN, LOW); //... turn the fan off } else { - digitalWrite(CONTROLLERFAN_PIN, HIGH); //... turn the fan on + WRITE(CONTROLLERFAN_PIN, HIGH); //... turn the fan on } } } |