From 524f4ee0cfcc85105bf6398f29dc437b48747b55 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 3 Nov 2017 03:48:23 -0500 Subject: [PATCH] Tweak to M330 thermal protection --- Marlin/temperature.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 =