diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index bd02b35c0b..d24512a439 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -229,13 +229,13 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS], max = 0, min = 10000; #if WATCH_THE_BED || WATCH_HOTENDS - const float watch_temp_target = + const float watch_temp_target = temp - #if ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) && ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(PIDTEMP) - hotend < 0 ? temp - (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1) : temp - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1) + (hotend < 0 ? (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1) : (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)) #elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) - temp - (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1) + (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1) #else - temp - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1) + (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1) #endif ; const int8_t watch_temp_period =