Don't show updir with no card present

This commit is contained in:
Scott Lahteine 2018-11-20 07:01:33 -06:00
parent ec9d21a234
commit d51e5690f4

View file

@ -111,9 +111,8 @@ void menu_sdcard() {
MENU_ITEM(function, LCD_STR_REFRESH MSG_REFRESH, lcd_sd_refresh);
#endif
}
else {
else if (card.flag.cardOK)
MENU_ITEM(function, LCD_STR_FOLDER "..", lcd_sd_updir);
}
for (uint16_t i = 0; i < fileCnt; i++) {
if (_menuLineNr == _thisItemNr) {