Merge pull request #392 from mfeherpataky/Marlin_v1
Update Marlin/ultralcd_implementation_hitachi_HD44780.h
This commit is contained in:
commit
fa5c45f515
1 changed files with 4 additions and 4 deletions
|
@ -321,9 +321,9 @@ static void lcd_implementation_drawmenu_setting_edit_generic(uint8_t row, const
|
||||||
char c;
|
char c;
|
||||||
//Use all characters in narrow LCDs
|
//Use all characters in narrow LCDs
|
||||||
#if LCD_WIDTH < 20
|
#if LCD_WIDTH < 20
|
||||||
uint8_t n = LCD_WIDTH - 1 - 1;
|
uint8_t n = LCD_WIDTH - 1 - 1 - strlen(data);
|
||||||
#else
|
#else
|
||||||
uint8_t n = LCD_WIDTH - 1 - 2;
|
uint8_t n = LCD_WIDTH - 1 - 2 - strlen(data);
|
||||||
#endif
|
#endif
|
||||||
lcd.setCursor(0, row);
|
lcd.setCursor(0, row);
|
||||||
lcd.print(pre_char);
|
lcd.print(pre_char);
|
||||||
|
@ -343,9 +343,9 @@ static void lcd_implementation_drawmenu_setting_edit_generic_P(uint8_t row, cons
|
||||||
char c;
|
char c;
|
||||||
//Use all characters in narrow LCDs
|
//Use all characters in narrow LCDs
|
||||||
#if LCD_WIDTH < 20
|
#if LCD_WIDTH < 20
|
||||||
uint8_t n = LCD_WIDTH - 1 - 1;
|
uint8_t n = LCD_WIDTH - 1 - 1 - strlen_P(data);
|
||||||
#else
|
#else
|
||||||
uint8_t n = LCD_WIDTH - 1 - 2;
|
uint8_t n = LCD_WIDTH - 1 - 2 - strlen_P(data);
|
||||||
#endif
|
#endif
|
||||||
lcd.setCursor(0, row);
|
lcd.setCursor(0, row);
|
||||||
lcd.print(pre_char);
|
lcd.print(pre_char);
|
||||||
|
|
Reference in a new issue