Skip to content

Commit

Permalink
🐛 Fix LCD Menu MBL Z-Offset Adjustment (#22450)
Browse files Browse the repository at this point in the history
  • Loading branch information
borland1 authored and thinkyhead committed Aug 9, 2021
1 parent 776eded commit 55cf3bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Marlin/src/lcd/menu/menu_bed_leveling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 55cf3bd

Please sign in to comment.