optimsation: draw cursor and set position with one function

Change in memory:
Flash: -4 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-02-18 13:18:53 +00:00
parent 2120d17912
commit 3cd97a5e8f
1 changed files with 1 additions and 2 deletions

View File

@ -5891,8 +5891,7 @@ void lcd_sdcard_menu()
if (_md->lcd_scrollTimer.expired(300) || rewindFlag)
{
uint8_t len = LCD_WIDTH - ((_md->isDir)? 2 : 1);
lcd_set_cursor(0, _md->row);
lcd_print('>');
lcd_putc_at(0, _md->row, '>');
if (_md->isDir)
lcd_print(LCD_STR_FOLDER[0]);