Quellcode durchsuchen

Merge pull request #5383 from thinkyhead/rc_fixup_5378

Fix rows error in DOGM
Scott Lahteine vor 8 Jahren
Ursprung
Commit
c9c6e084ce
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3
    2
      Marlin/ultralcd_impl_DOGM.h

+ 3
- 2
Marlin/ultralcd_impl_DOGM.h Datei anzeigen

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;

Laden…
Abbrechen
Speichern