Merge pull request #5383 from thinkyhead/rc_fixup_5378

Fix rows error in DOGM
This commit is contained in:
Scott Lahteine 2016-12-05 07:24:44 -06:00 committed by GitHub
commit c9c6e084ce

View File

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