Limit set hotend temperature to maxtemp. (#12690)

2.0.x
Roman Moravčík 6 years ago committed by Scott Lahteine
parent 4dad489a50
commit 98cf546771

@ -407,7 +407,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]);
#if WATCH_HOTENDS
start_watching_heater(HOTEND_INDEX);
#endif

Loading…
Cancel
Save