From d17f7ebc8a36cf8171834c0769c3ac814f3c4f1b Mon Sep 17 00:00:00 2001 From: AnHardt Date: Tue, 28 Jul 2015 01:17:00 +0200 Subject: [PATCH] Multiply WATCH_TEMP_PERIOD by 1000UL (PR#2535) instead of 1000. Else we get errors with times over 32 seconds. --- Marlin/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 236ddfc8f0..9f99c1368e 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -1013,7 +1013,7 @@ void tp_init() { void start_watching_heater(int e) { if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)) { watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE; - watch_heater_next_ms[e] = millis() + WATCH_TEMP_PERIOD * 1000; + watch_heater_next_ms[e] = millis() + WATCH_TEMP_PERIOD * 1000UL; } else watch_heater_next_ms[e] = 0;