Skip SD menu refresh if nothing has changed
This commit is contained in:
parent
be2dea1dc6
commit
d80aecda0a
1 changed files with 2 additions and 0 deletions
|
@ -675,6 +675,8 @@ static void lcd_sd_updir()
|
||||||
|
|
||||||
void lcd_sdcard_menu()
|
void lcd_sdcard_menu()
|
||||||
{
|
{
|
||||||
|
if (lcdDrawUpdate == 0 && LCD_CLICKED == 0)
|
||||||
|
return; // nothing to do (so don't thrash the SD card)
|
||||||
uint16_t fileCnt = card.getnrfilenames();
|
uint16_t fileCnt = card.getnrfilenames();
|
||||||
START_MENU();
|
START_MENU();
|
||||||
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
||||||
|
|
Reference in a new issue