From 98542623347e042e8289ee2f165881dd82801361 Mon Sep 17 00:00:00 2001 From: GMagician <3684609+GMagician@users.noreply.github.com> Date: Fri, 9 Feb 2018 00:59:03 +0100 Subject: [PATCH] [2.0.x] Fix compile warning (#9539) --- Marlin/src/lcd/ultralcd_impl_DOGM.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/ultralcd_impl_DOGM.h b/Marlin/src/lcd/ultralcd_impl_DOGM.h index 2f537445f8..6bf80c6191 100644 --- a/Marlin/src/lcd/ultralcd_impl_DOGM.h +++ b/Marlin/src/lcd/ultralcd_impl_DOGM.h @@ -936,11 +936,11 @@ static void lcd_implementation_status_screen() { const uint8_t labellen = lcd_strlen_P(pstr), vallen = lcd_strlen(value); - constexpr uint8_t lcd_width_edit = (LCD_WIDTH) / (DOG_CHAR_WIDTH_EDIT); - uint8_t rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1; #if ENABLED(USE_BIG_EDIT_FONT) + constexpr uint8_t lcd_width_edit = (LCD_WIDTH) / (DOG_CHAR_WIDTH_EDIT); + uint8_t lcd_width, char_width; if (labellen <= lcd_width_edit - 1) { if (labellen + vallen + 2 >= lcd_width_edit) rows = 2;