Browse Source

Limit set hotend temperature to maxtemp. (#12690)

pull/1/head
Roman Moravčík 6 years ago
committed by Scott Lahteine
parent
commit
98cf546771
  1. 2
      Marlin/src/module/temperature.h

2
Marlin/src/module/temperature.h

@ -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