|
@@ -249,13 +249,13 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
|
249
|
249
|
THERMAL_PROTECTION_PERIOD
|
250
|
250
|
#endif
|
251
|
251
|
;
|
252
|
|
- const int8_t hysteresis =
|
|
252
|
+ const int8_t watch_temp_increase =
|
253
|
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
|
255
|
#elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED)
|
256
|
|
- TEMP_BED_HYSTERESIS
|
|
256
|
+ WATCH_BED_TEMP_INCREASE
|
257
|
257
|
#else
|
258
|
|
- TEMP_HYSTERESIS
|
|
258
|
+ WATCH_TEMP_INCREASE
|
259
|
259
|
#endif
|
260
|
260
|
;
|
261
|
261
|
millis_t temp_change_ms = next_temp_ms + watch_temp_period * 1000UL;
|
|
@@ -432,7 +432,7 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
|
432
|
432
|
#if WATCH_THE_BED || WATCH_HOTENDS
|
433
|
433
|
if (!heated && input > next_watch_temp) {
|
434
|
434
|
if (input > watch_temp_target) heated = true;
|
435
|
|
- next_watch_temp = input + hysteresis;
|
|
435
|
+ next_watch_temp = input + watch_temp_increase;
|
436
|
436
|
temp_change_ms = ms + watch_temp_period * 1000UL;
|
437
|
437
|
}
|
438
|
438
|
else if ((!heated && ELAPSED(ms, temp_change_ms)) || (heated && input < temp - MAX_OVERSHOOT_PID_AUTOTUNE))
|