Update Sprinter/Sprinter.pde

This commit is contained in:
blddk 2011-10-16 16:29:59 +03:00
parent cc1bb0fc08
commit 588109f098

View file

@ -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
}