Browse Source

Multiply WATCH_TEMP_PERIOD by 1000UL (PR#2535)

instead of 1000.  Else we get errors with times over 32 seconds.
AnHardt 10 years ago
parent
commit
d17f7ebc8a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp View File

@@ -1013,7 +1013,7 @@ void tp_init() {
1013 1013
   void start_watching_heater(int e) {
1014 1014
     if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)) {
1015 1015
       watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE;
1016
-      watch_heater_next_ms[e] = millis() + WATCH_TEMP_PERIOD * 1000;
1016
+      watch_heater_next_ms[e] = millis() + WATCH_TEMP_PERIOD * 1000UL;
1017 1017
     }
1018 1018
     else
1019 1019
       watch_heater_next_ms[e] = 0;

Loading…
Cancel
Save