瀏覽代碼

Limit top bed temp to BED_MAXTEMP - 10

The chances of a 10° overshoot is pretty minimal.
Scott Lahteine 5 年之前
父節點
當前提交
e52bcc9408

+ 2
- 2
Marlin/src/gcode/bedlevel/G26.cpp 查看文件

571
 
571
 
572
   if (parser.seenval('B')) {
572
   if (parser.seenval('B')) {
573
     g26_bed_temp = parser.value_celsius();
573
     g26_bed_temp = parser.value_celsius();
574
-    if (g26_bed_temp && !WITHIN(g26_bed_temp, 40, (BED_MAXTEMP - 15))) {
575
-      SERIAL_ECHOLNPAIR("?Specified bed temperature not plausible (40-", int(BED_MAXTEMP - 15), "C).");
574
+    if (g26_bed_temp && !WITHIN(g26_bed_temp, 40, (BED_MAXTEMP - 10))) {
575
+      SERIAL_ECHOLNPAIR("?Specified bed temperature not plausible (40-", int(BED_MAXTEMP - 10), "C).");
576
       return;
576
       return;
577
     }
577
     }
578
   }
578
   }

+ 1
- 1
Marlin/src/gcode/lcd/M145.cpp 查看文件

52
     #if TEMP_SENSOR_BED != 0
52
     #if TEMP_SENSOR_BED != 0
53
       if (parser.seenval('B')) {
53
       if (parser.seenval('B')) {
54
         v = parser.value_int();
54
         v = parser.value_int();
55
-        ui.preheat_bed_temp[material] = constrain(v, BED_MINTEMP, BED_MAXTEMP - 15);
55
+        ui.preheat_bed_temp[material] = constrain(v, BED_MINTEMP, BED_MAXTEMP - 10);
56
       }
56
       }
57
     #endif
57
     #endif
58
   }
58
   }

+ 1
- 1
Marlin/src/lcd/extensible_ui/ui_api.cpp 查看文件

609
     const int16_t e = heater - H0;
609
     const int16_t e = heater - H0;
610
     #if HAS_HEATED_BED
610
     #if HAS_HEATED_BED
611
       if (heater == BED)
611
       if (heater == BED)
612
-        thermalManager.setTargetBed(clamp(value, 0, BED_MAXTEMP - 15));
612
+        thermalManager.setTargetBed(clamp(value, 0, BED_MAXTEMP - 10));
613
       else
613
       else
614
     #endif
614
     #endif
615
         thermalManager.setTargetHotend(clamp(value, 0, heater_maxtemp[e] - 15), e);
615
         thermalManager.setTargetHotend(clamp(value, 0, heater_maxtemp[e] - 15), e);

+ 1
- 1
Marlin/src/lcd/menu/menu_configuration.cpp 查看文件

238
       MENU_ITEM_EDIT(int3, MSG_NOZZLE, &ui.preheat_hotend_temp[material], MINTEMP_ALL, MAXTEMP_ALL - 15);
238
       MENU_ITEM_EDIT(int3, MSG_NOZZLE, &ui.preheat_hotend_temp[material], MINTEMP_ALL, MAXTEMP_ALL - 15);
239
     #endif
239
     #endif
240
     #if HAS_HEATED_BED
240
     #if HAS_HEATED_BED
241
-      MENU_ITEM_EDIT(int3, MSG_BED, &ui.preheat_bed_temp[material], BED_MINTEMP, BED_MAXTEMP - 15);
241
+      MENU_ITEM_EDIT(int3, MSG_BED, &ui.preheat_bed_temp[material], BED_MINTEMP, BED_MAXTEMP - 10);
242
     #endif
242
     #endif
243
     #if ENABLED(EEPROM_SETTINGS)
243
     #if ENABLED(EEPROM_SETTINGS)
244
       MENU_ITEM(function, MSG_STORE_EEPROM, lcd_store_settings);
244
       MENU_ITEM(function, MSG_STORE_EEPROM, lcd_store_settings);

+ 1
- 1
Marlin/src/lcd/menu/menu_temperature.cpp 查看文件

380
   // Bed:
380
   // Bed:
381
   //
381
   //
382
   #if HAS_HEATED_BED
382
   #if HAS_HEATED_BED
383
-    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_BED, &thermalManager.temp_bed.target, 0, BED_MAXTEMP - 5, thermalManager.start_watching_bed);
383
+    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_BED, &thermalManager.temp_bed.target, 0, BED_MAXTEMP - 10, thermalManager.start_watching_bed);
384
   #endif
384
   #endif
385
 
385
 
386
   //
386
   //

+ 1
- 1
Marlin/src/lcd/menu/menu_tune.cpp 查看文件

143
   // Bed:
143
   // Bed:
144
   //
144
   //
145
   #if HAS_HEATED_BED
145
   #if HAS_HEATED_BED
146
-    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_BED, &thermalManager.temp_bed.target, 0, BED_MAXTEMP - 15, thermalManager.start_watching_bed);
146
+    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_BED, &thermalManager.temp_bed.target, 0, BED_MAXTEMP - 10, thermalManager.start_watching_bed);
147
   #endif
147
   #endif
148
 
148
 
149
   //
149
   //

+ 1
- 1
Marlin/src/lcd/menu/menu_ubl.cpp 查看文件

131
   MENU_BACK(MSG_UBL_BUILD_MESH_MENU);
131
   MENU_BACK(MSG_UBL_BUILD_MESH_MENU);
132
   MENU_ITEM_EDIT(int3, MSG_UBL_HOTEND_TEMP_CUSTOM, &custom_hotend_temp, EXTRUDE_MINTEMP, (HEATER_0_MAXTEMP - 10));
132
   MENU_ITEM_EDIT(int3, MSG_UBL_HOTEND_TEMP_CUSTOM, &custom_hotend_temp, EXTRUDE_MINTEMP, (HEATER_0_MAXTEMP - 10));
133
   #if HAS_HEATED_BED
133
   #if HAS_HEATED_BED
134
-    MENU_ITEM_EDIT(int3, MSG_UBL_BED_TEMP_CUSTOM, &custom_bed_temp, BED_MINTEMP, (BED_MAXTEMP - 15));
134
+    MENU_ITEM_EDIT(int3, MSG_UBL_BED_TEMP_CUSTOM, &custom_bed_temp, BED_MINTEMP, (BED_MAXTEMP - 10));
135
   #endif
135
   #endif
136
   MENU_ITEM(function, MSG_UBL_BUILD_CUSTOM_MESH, _lcd_ubl_build_custom_mesh);
136
   MENU_ITEM(function, MSG_UBL_BUILD_CUSTOM_MESH, _lcd_ubl_build_custom_mesh);
137
   END_MENU();
137
   END_MENU();

+ 1
- 1
Marlin/src/module/temperature.h 查看文件

632
         #endif
632
         #endif
633
         temp_bed.target =
633
         temp_bed.target =
634
           #ifdef BED_MAXTEMP
634
           #ifdef BED_MAXTEMP
635
-            MIN(celsius, BED_MAXTEMP - 15)
635
+            MIN(celsius, BED_MAXTEMP - 10)
636
           #else
636
           #else
637
             celsius
637
             celsius
638
           #endif
638
           #endif

Loading…
取消
儲存