Limit hotend / bed temperature to maxtemp-15 (#12713)
This commit is contained in:
parent
530ef5846f
commit
594898aea7
1 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ class Temperature {
|
||||||
#if ENABLED(AUTO_POWER_CONTROL)
|
#if ENABLED(AUTO_POWER_CONTROL)
|
||||||
powerManager.power_on();
|
powerManager.power_on();
|
||||||
#endif
|
#endif
|
||||||
target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX]);
|
target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX] - 15);
|
||||||
#if WATCH_HOTENDS
|
#if WATCH_HOTENDS
|
||||||
start_watching_heater(HOTEND_INDEX);
|
start_watching_heater(HOTEND_INDEX);
|
||||||
#endif
|
#endif
|
||||||
|
@ -451,7 +451,7 @@ class Temperature {
|
||||||
#endif
|
#endif
|
||||||
target_temperature_bed =
|
target_temperature_bed =
|
||||||
#ifdef BED_MAXTEMP
|
#ifdef BED_MAXTEMP
|
||||||
MIN(celsius, BED_MAXTEMP)
|
MIN(celsius, BED_MAXTEMP - 15)
|
||||||
#else
|
#else
|
||||||
celsius
|
celsius
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue