summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorblddk <michael.andresen@gmail.com>2011-10-16 16:29:59 +0300
committerblddk <michael.andresen@gmail.com>2011-10-16 16:29:59 +0300
commit588109f0984eeeb1f97dee956f26c9cecea1c806 (patch)
treebc0867d0982d381a4f0f2a51b622fc28d3b1dcdc /Sprinter
parentcc1bb0fc0825ca7997b3c21ae744972a1b22a6f9 (diff)
Update Sprinter/Sprinter.pde
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 9b694fd..ca3e0e9 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*1000) || lastMotor == 0) //If the last time any driver was enabled, is longer since than CONTROLLERSEC...
+ if ((millis() - lastMotor) >= (CONTROLLERFAN_SEC*1000L) || lastMotor == 0) //If the last time any driver was enabled, is longer since than CONTROLLERSEC...
{
WRITE(CONTROLLERFAN_PIN, LOW); //... turn the fan off
}