Ver código fonte

Fix PID_autotune watch temp increase value

Scott Lahteine 7 anos atrás
pai
commit
8fea26aa9d
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5
    5
      Marlin/src/module/temperature.cpp

+ 5
- 5
Marlin/src/module/temperature.cpp Ver arquivo

249
           THERMAL_PROTECTION_PERIOD
249
           THERMAL_PROTECTION_PERIOD
250
         #endif
250
         #endif
251
       ;
251
       ;
252
-      const int8_t hysteresis =
252
+      const int8_t watch_temp_increase =
253
         #if ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) && ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(PIDTEMP)
253
         #if ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) && ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(PIDTEMP)
254
-          hotend < 0 ? TEMP_BED_HYSTERESIS : TEMP_HYSTERESIS
254
+          hotend < 0 ? WATCH_BED_TEMP_INCREASE : WATCH_TEMP_INCREASE
255
         #elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED)
255
         #elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED)
256
-          TEMP_BED_HYSTERESIS
256
+          WATCH_BED_TEMP_INCREASE
257
         #else
257
         #else
258
-          TEMP_HYSTERESIS
258
+          WATCH_TEMP_INCREASE
259
         #endif
259
         #endif
260
       ;
260
       ;
261
       millis_t temp_change_ms = next_temp_ms + watch_temp_period * 1000UL;
261
       millis_t temp_change_ms = next_temp_ms + watch_temp_period * 1000UL;
432
         #if WATCH_THE_BED || WATCH_HOTENDS
432
         #if WATCH_THE_BED || WATCH_HOTENDS
433
           if (!heated && input > next_watch_temp) {
433
           if (!heated && input > next_watch_temp) {
434
             if (input > watch_temp_target) heated = true;
434
             if (input > watch_temp_target) heated = true;
435
-            next_watch_temp = input + hysteresis;
435
+            next_watch_temp = input + watch_temp_increase;
436
             temp_change_ms = ms + watch_temp_period * 1000UL;
436
             temp_change_ms = ms + watch_temp_period * 1000UL;
437
           }
437
           }
438
           else if ((!heated && ELAPSED(ms, temp_change_ms)) || (heated && input < temp - MAX_OVERSHOOT_PID_AUTOTUNE))
438
           else if ((!heated && ELAPSED(ms, temp_change_ms)) || (heated && input < temp - MAX_OVERSHOOT_PID_AUTOTUNE))

Carregando…
Cancelar
Salvar