From 09587f7c0d8ba7d8afa9a15e72e0d21600c7a1c5 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Mon, 5 Dec 2016 07:14:11 -0600
Subject: [PATCH] Fix rows error in DOGM

---
 Marlin/ultralcd_impl_DOGM.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Marlin/ultralcd_impl_DOGM.h b/Marlin/ultralcd_impl_DOGM.h
index 0b943bad4a..46a5225618 100644
--- a/Marlin/ultralcd_impl_DOGM.h
+++ b/Marlin/ultralcd_impl_DOGM.h
@@ -758,8 +758,9 @@ static void lcd_implementation_status_screen() {
 
   void lcd_implementation_drawedit(const char* const pstr, const char* const value=NULL) {
     const uint8_t labellen = lcd_strlen_P(pstr),
-                  vallen = lcd_strlen(value),
-                  rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1;
+                  vallen = lcd_strlen(value);
+
+    uint8_t rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1;
 
     #if ENABLED(USE_BIG_EDIT_FONT)
       uint8_t lcd_width, char_width;