From d51e5690f4bf993cb40eb6c2915f28543bb41d73 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 20 Nov 2018 07:01:33 -0600 Subject: [PATCH] Don't show updir with no card present --- Marlin/src/lcd/menu/menu_sdcard.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/src/lcd/menu/menu_sdcard.cpp b/Marlin/src/lcd/menu/menu_sdcard.cpp index 1ea3379926..f5fffb91e2 100644 --- a/Marlin/src/lcd/menu/menu_sdcard.cpp +++ b/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); #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) {