瀏覽代碼

Multiply WATCH_TEMP_PERIOD by 1000UL (PR#2535)

instead of 1000.  Else we get errors with times over 32 seconds.
AnHardt 10 年之前
父節點
當前提交
d17f7ebc8a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp 查看文件

@@ -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…
取消
儲存