From ff1362c71dcb21476e1b922f738c4675f94587aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Morav=C4=8D=C3=ADk?= Date: Thu, 27 Dec 2018 18:40:34 +0100 Subject: [PATCH] [1.1.x] Limit hotend / bed temperature to maxtemp-15. (#12702) --- Marlin/temperature.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/temperature.h b/Marlin/temperature.h index cc6df0bdf7..7eba6e62a7 100644 --- a/Marlin/temperature.h +++ b/Marlin/temperature.h @@ -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