Selaa lähdekoodia

Limit hotend / bed temperature to maxtemp-15 (#12713)

Roman Moravčík 6 vuotta sitten
vanhempi
commit
594898aea7
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      Marlin/src/module/temperature.h

+ 2
- 2
Marlin/src/module/temperature.h Näytä tiedosto

@@ -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] = MIN(celsius, maxttemp[HOTEND_INDEX]);
410
+      target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX] - 15);
411 411
       #if WATCH_HOTENDS
412 412
         start_watching_heater(HOTEND_INDEX);
413 413
       #endif
@@ -451,7 +451,7 @@ class Temperature {
451 451
         #endif
452 452
         target_temperature_bed =
453 453
           #ifdef BED_MAXTEMP
454
-            MIN(celsius, BED_MAXTEMP)
454
+            MIN(celsius, BED_MAXTEMP - 15)
455 455
           #else
456 456
             celsius
457 457
           #endif

Loading…
Peruuta
Tallenna