Ver código fonte

Fix CHAMBER_MAXTEMP security margin (#16600)

Giuliano Zaro 5 anos atrás
pai
commit
ef8f829513

+ 1
- 1
Marlin/src/lcd/menu/menu_temperature.cpp Ver arquivo

@@ -191,7 +191,7 @@ void menu_temperature() {
191 191
   // Chamber:
192 192
   //
193 193
   #if HAS_HEATED_CHAMBER
194
-    EDIT_ITEM_FAST(int3, MSG_CHAMBER, &thermalManager.temp_chamber.target, 0, CHAMBER_MAXTEMP - 5, thermalManager.start_watching_chamber);
194
+    EDIT_ITEM_FAST(int3, MSG_CHAMBER, &thermalManager.temp_chamber.target, 0, CHAMBER_MAXTEMP - 10, thermalManager.start_watching_chamber);
195 195
   #endif
196 196
 
197 197
   //

+ 1
- 1
Marlin/src/module/temperature.h Ver arquivo

@@ -711,7 +711,7 @@ class Temperature {
711 711
       static void setTargetChamber(const int16_t celsius) {
712 712
         temp_chamber.target =
713 713
           #ifdef CHAMBER_MAXTEMP
714
-            _MIN(celsius, CHAMBER_MAXTEMP)
714
+            _MIN(celsius, CHAMBER_MAXTEMP - 10)
715 715
           #else
716 716
             celsius
717 717
           #endif

Carregando…
Cancelar
Salvar