Browse Source

Tweak to M330 thermal protection

Scott Lahteine 7 years ago
parent
commit
524f4ee0cf
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/temperature.cpp

+ 4
- 4
Marlin/temperature.cpp View File

@@ -229,13 +229,13 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
229 229
           max = 0, min = 10000;
230 230
 
231 231
     #if WATCH_THE_BED || WATCH_HOTENDS
232
-      const float watch_temp_target =
232
+      const float watch_temp_target = temp -
233 233
         #if ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) && ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(PIDTEMP)
234
-          hotend < 0 ? temp - (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1) : temp - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)
234
+          (hotend < 0 ? (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1) : (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1))
235 235
         #elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED)
236
-          temp - (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1)
236
+          (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1)
237 237
         #else
238
-          temp - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)
238
+          (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)
239 239
         #endif
240 240
       ;
241 241
       const int8_t watch_temp_period =

Loading…
Cancel
Save