summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblddk <michael.andresen@gmail.com>2011-10-16 16:31:56 +0300
committerblddk <michael.andresen@gmail.com>2011-10-16 16:31:56 +0300
commitf63468b74788d6c9efd7d7a2bf9174c99d0044ca (patch)
tree5ab3ea8637df24d014ab7c6044f62adfdb3ac21c
parent588109f0984eeeb1f97dee956f26c9cecea1c806 (diff)
Update Sprinter/Sprinter.pde
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index ca3e0e9..7a6bf5e 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -1460,7 +1460,7 @@ void controllerFan()
lastMotor = millis(); //... set time to NOW so the fan will turn on
}
- if ((millis() - lastMotor) >= (CONTROLLERFAN_SEC*1000L) || lastMotor == 0) //If the last time any driver was enabled, is longer since than CONTROLLERSEC...
+ if ((millis() - lastMotor) >= (CONTROLLERFAN_SEC*1000UL) || lastMotor == 0) //If the last time any driver was enabled, is longer since than CONTROLLERSEC...
{
WRITE(CONTROLLERFAN_PIN, LOW); //... turn the fan off
}