chiark / gitweb /
Fixed M109 timer overflow (reported by triffid)
authorErik van der Zalm <erik@vdzalm.eu>
Thu, 9 Feb 2012 19:54:49 +0000 (20:54 +0100)
committerErik van der Zalm <erik@vdzalm.eu>
Thu, 9 Feb 2012 19:54:49 +0000 (20:54 +0100)
Marlin/Marlin.pde

index 5b4bce9b411a4f56ce2ab7a01eed5739f7aa357b..b2a9065f98829fefcda55d4da60cdcfea7ab0cbc 100644 (file)
@@ -842,7 +842,7 @@ void process_commands()
         /* continue to loop until we have reached the target temp   
           _and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
         while((residencyStart == -1) ||
-              (residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000) ) {
+              (residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000l) ) {
       #else
         while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) {
       #endif //TEMP_RESIDENCY_TIME