Browse Source

Fix rows error in DOGM

Scott Lahteine 8 years ago
parent
commit
09587f7c0d
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/ultralcd_impl_DOGM.h

+ 3
- 2
Marlin/ultralcd_impl_DOGM.h View File

@@ -758,8 +758,9 @@ static void lcd_implementation_status_screen() {
758 758
 
759 759
   void lcd_implementation_drawedit(const char* const pstr, const char* const value=NULL) {
760 760
     const uint8_t labellen = lcd_strlen_P(pstr),
761
-                  vallen = lcd_strlen(value),
762
-                  rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1;
761
+                  vallen = lcd_strlen(value);
762
+
763
+    uint8_t rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1;
763 764
 
764 765
     #if ENABLED(USE_BIG_EDIT_FONT)
765 766
       uint8_t lcd_width, char_width;

Loading…
Cancel
Save