Browse Source

Don't show updir with no card present

pull/1/head
Scott Lahteine 6 years ago
parent
commit
d51e5690f4
  1. 3
      Marlin/src/lcd/menu/menu_sdcard.cpp

3
Marlin/src/lcd/menu/menu_sdcard.cpp

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

Loading…
Cancel
Save