From: Erik van der Zalm Date: Thu, 9 Feb 2012 19:54:49 +0000 (+0100) Subject: Fixed M109 timer overflow (reported by triffid) X-Git-Tag: iwj-success-2012-07-29~113 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f87c80889fe967ea883f96d2eed0f82398d8a3dd;p=marlin.git Fixed M109 timer overflow (reported by triffid) --- diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index 5b4bce9..b2a9065 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -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