Browse Source

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

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

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

407
       #if ENABLED(AUTO_POWER_CONTROL)
407
       #if ENABLED(AUTO_POWER_CONTROL)
408
         powerManager.power_on();
408
         powerManager.power_on();
409
       #endif
409
       #endif
410
-      target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX]);
410
+      target_temperature[HOTEND_INDEX] = MIN(celsius, maxttemp[HOTEND_INDEX] - 15);
411
       #if WATCH_HOTENDS
411
       #if WATCH_HOTENDS
412
         start_watching_heater(HOTEND_INDEX);
412
         start_watching_heater(HOTEND_INDEX);
413
       #endif
413
       #endif
451
         #endif
451
         #endif
452
         target_temperature_bed =
452
         target_temperature_bed =
453
           #ifdef BED_MAXTEMP
453
           #ifdef BED_MAXTEMP
454
-            MIN(celsius, BED_MAXTEMP)
454
+            MIN(celsius, BED_MAXTEMP - 15)
455
           #else
455
           #else
456
             celsius
456
             celsius
457
           #endif
457
           #endif

Loading…
Cancel
Save