Patch lcd_print edge limit code
This commit is contained in:
parent
bad432add7
commit
6b9ca16f36
4 changed files with 6 additions and 5 deletions
|
|
@ -831,7 +831,7 @@ static void lcd_implementation_status_screen() {
|
|||
const uint8_t slen = lcd_strlen(lcd_status_message);
|
||||
if (slen > LCD_WIDTH) {
|
||||
// Skip any non-printing bytes
|
||||
while (!charset_mapper(lcd_status_message[status_scroll_pos])) ++status_scroll_pos;
|
||||
while (!PRINTABLE(lcd_status_message[status_scroll_pos])) ++status_scroll_pos;
|
||||
if (++status_scroll_pos > slen - LCD_WIDTH) status_scroll_pos = 0;
|
||||
}
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue