Limit set hotend temperature to maxtemp. (#12690)
This commit is contained in:
parent
4dad489a50
commit
98cf546771
@ -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] = celsius;
|
target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX]);
|
||||||
#if WATCH_HOTENDS
|
#if WATCH_HOTENDS
|
||||||
start_watching_heater(HOTEND_INDEX);
|
start_watching_heater(HOTEND_INDEX);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user