Skip to content

Commit

Permalink
Tweak to M330 thermal protection
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 3, 2017
1 parent 0e4b6b3 commit 524f4ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 524f4ee

Please sign in to comment.