From 0e935069856db7059acd45555a6fec080b82706b Mon Sep 17 00:00:00 2001 From: revilor Date: Thu, 4 Jan 2018 10:26:14 +0100 Subject: [PATCH] Fix for issue #9005, #8942 - Bed PID autotuning (#9036) --- Marlin/src/module/temperature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 21d1a5bd7..887b0717e 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -242,8 +242,8 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS], #endif #if WATCH_THE_BED || WATCH_HOTENDS - const int8_t watch_temp_period = TV(WATCH_BED_TEMP_PERIOD, WATCH_TEMP_PERIOD), - watch_temp_increase = TV(WATCH_BED_TEMP_INCREASE, WATCH_TEMP_INCREASE); + const uint16_t watch_temp_period = TV(WATCH_BED_TEMP_PERIOD, WATCH_TEMP_PERIOD); + const uint8_t watch_temp_increase = TV(WATCH_BED_TEMP_INCREASE, WATCH_TEMP_INCREASE); const float watch_temp_target = target - float(watch_temp_increase + TV(TEMP_BED_HYSTERESIS, TEMP_HYSTERESIS) + 1); millis_t temp_change_ms = next_temp_ms + watch_temp_period * 1000UL; float next_watch_temp = 0.0;