Skip to content

Commit

Permalink
Fixed M109 timer overflow (reported by triffid)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikZalm committed Feb 9, 2012
1 parent 154de69 commit f87c808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/Marlin.pde
Expand Up @@ -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
Expand Down

0 comments on commit f87c808

Please sign in to comment.