From 08686a0862c7b89e6cbdfb8814d1064fe403f6c4 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Fri, 6 Apr 2018 09:35:52 -0600 Subject: [PATCH] Changed LCD representation of Z-Offset (#2240) - Z Offset now shown using two decimal places to better match the resolution of the encoder. --- Marlin/Conditionals_LulzBot.h | 1 + Marlin/ultralcd.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals_LulzBot.h b/Marlin/Conditionals_LulzBot.h index 5bc5e2ef1..9c65a9215 100644 --- a/Marlin/Conditionals_LulzBot.h +++ b/Marlin/Conditionals_LulzBot.h @@ -1768,6 +1768,7 @@ #define LULZBOT_BABYSTEP_ZPROBE_GFX_OVERLAY #define LULZBOT_THIN_OVERLAY_ARROWS #define LULZBOT_DISABLE_KILL_BUTTON + #define LULZBOT_ZOFFSET_PRECISION ftostr32 #endif /* Marlin requires static PSTRs to display on the LCD display, because of this */ diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 2d2bc9b1e..43fd77261 100644 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -1273,7 +1273,7 @@ void kill_screen(const char* lcd_msg) { } } if (lcdDrawUpdate) { - lcd_implementation_drawedit(PSTR(MSG_ZPROBE_ZOFFSET), ftostr43sign(zprobe_zoffset)); + lcd_implementation_drawedit(PSTR(MSG_ZPROBE_ZOFFSET), LULZBOT_ZOFFSET_PRECISION(zprobe_zoffset)); #if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) _lcd_zoffset_overlay_gfx(zprobe_zoffset); #endif