Skip SD menu refresh if nothing has changed

This commit is contained in:
Brendan-csel 2013-07-29 21:00:29 +12:00 committed by Nicolas Rossi
parent abc8320a68
commit d7f384f680

View File

@ -695,6 +695,8 @@ static void lcd_sd_updir()
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();
START_MENU();
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);