Merge pull request #1798 from DRracer/MK3
limit printed menu text to max 18 characters
This commit is contained in:
commit
5beb337c56
|
|
@ -171,7 +171,7 @@ int menu_draw_item_printf_P(char type_char, const char* format, ...)
|
||||||
static int menu_draw_item_puts_P(char type_char, const char* str)
|
static int menu_draw_item_puts_P(char type_char, const char* str)
|
||||||
{
|
{
|
||||||
lcd_set_cursor(0, menu_row);
|
lcd_set_cursor(0, menu_row);
|
||||||
int cnt = lcd_printf_P(PSTR("%c%-18S%c"), (lcd_encoder == menu_item)?'>':' ', str, type_char);
|
int cnt = lcd_printf_P(PSTR("%c%-18.18S%c"), (lcd_encoder == menu_item)?'>':' ', str, type_char);
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue