Browse Source

Merge pull request #5383 from thinkyhead/rc_fixup_5378

Fix rows error in DOGM
Scott Lahteine 8 years ago
parent
commit
c9c6e084ce
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
 
758
 
759
   void lcd_implementation_drawedit(const char* const pstr, const char* const value=NULL) {
759
   void lcd_implementation_drawedit(const char* const pstr, const char* const value=NULL) {
760
     const uint8_t labellen = lcd_strlen_P(pstr),
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
     #if ENABLED(USE_BIG_EDIT_FONT)
765
     #if ENABLED(USE_BIG_EDIT_FONT)
765
       uint8_t lcd_width, char_width;
766
       uint8_t lcd_width, char_width;

Loading…
Cancel
Save