Browse Source

Limit hotend / bed temperature to maxtemp-15 (#12713)

pull/1/head
Roman Moravčík 6 years ago
committed by Scott Lahteine
parent
commit
594898aea7
  1. 4
      Marlin/src/module/temperature.h

4
Marlin/src/module/temperature.h

@ -407,7 +407,7 @@ class Temperature {
#if ENABLED(AUTO_POWER_CONTROL)
powerManager.power_on();
#endif
target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX]);
target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX] - 15);
#if WATCH_HOTENDS
start_watching_heater(HOTEND_INDEX);
#endif
@ -451,7 +451,7 @@ class Temperature {
#endif
target_temperature_bed =
#ifdef BED_MAXTEMP
MIN(celsius, BED_MAXTEMP)
MIN(celsius, BED_MAXTEMP - 15)
#else
celsius
#endif

Loading…
Cancel
Save