Browse Source

🐛 Fix LCD Menu MBL Z-Offset Adjustment (#22450)

vanilla_fb_2.0.x
borland1 3 years ago
committed by Scott Lahteine
parent
commit
55cf3bd5ee
  1. 7
      Marlin/src/lcd/menu/menu_bed_leveling.cpp

7
Marlin/src/lcd/menu/menu_bed_leveling.cpp

@ -278,7 +278,12 @@ void menu_bed_leveling() {
// Mesh Bed Leveling Z-Offset
//
#if ENABLED(MESH_BED_LEVELING)
EDIT_ITEM(float43, MSG_BED_Z, &mbl.z_offset, -1, 1);
#if WITHIN(Z_PROBE_OFFSET_RANGE_MIN, -9, 9)
#define LCD_Z_OFFSET_TYPE float43 // Values from -9.000 to +9.000
#else
#define LCD_Z_OFFSET_TYPE float42_52 // Values from -99.99 to 99.99
#endif
EDIT_ITEM(LCD_Z_OFFSET_TYPE, MSG_BED_Z, &mbl.z_offset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
#endif
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)

Loading…
Cancel
Save