Browse Source

Limit set hotend temperature to maxtemp. (#12690)

Roman Moravčík 6 years ago
parent
commit
98cf546771
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/temperature.h

+ 1
- 1
Marlin/src/module/temperature.h View File

@@ -407,7 +407,7 @@ class Temperature {
407 407
       #if ENABLED(AUTO_POWER_CONTROL)
408 408
         powerManager.power_on();
409 409
       #endif
410
-      target_temperature[HOTEND_INDEX] = celsius;
410
+      target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX]);
411 411
       #if WATCH_HOTENDS
412 412
         start_watching_heater(HOTEND_INDEX);
413 413
       #endif

Loading…
Cancel
Save