Fixed M109 timer overflow (reported by triffid)
This commit is contained in:
		| @@ -842,7 +842,7 @@ void process_commands() | |||||||
|         /* continue to loop until we have reached the target temp    |         /* continue to loop until we have reached the target temp    | ||||||
|           _and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */ |           _and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */ | ||||||
|         while((residencyStart == -1) || |         while((residencyStart == -1) || | ||||||
|               (residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000) ) { |               (residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000l) ) { | ||||||
|       #else |       #else | ||||||
|         while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) { |         while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) { | ||||||
|       #endif //TEMP_RESIDENCY_TIME |       #endif //TEMP_RESIDENCY_TIME | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user