mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-29 23:07:42 +00:00
[1.1.x] Limit hotend / bed temperature to maxtemp-15. (#12702)
This commit is contained in:
parent
2a2c6c2d6f
commit
3e459a071a
@ -414,7 +414,7 @@ class Temperature {
|
||||
#if ENABLED(AUTO_POWER_CONTROL)
|
||||
powerManager.power_on();
|
||||
#endif
|
||||
target_temperature[HOTEND_INDEX] = celsius;
|
||||
target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX] - 15);
|
||||
#if WATCH_HOTENDS
|
||||
start_watching_heater(HOTEND_INDEX);
|
||||
#endif
|
||||
@ -449,7 +449,7 @@ class Temperature {
|
||||
#endif
|
||||
target_temperature_bed =
|
||||
#ifdef BED_MAXTEMP
|
||||
MIN(celsius, BED_MAXTEMP)
|
||||
MIN(celsius, BED_MAXTEMP - 15)
|
||||
#else
|
||||
celsius
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user