Przeglądaj źródła

Don't show updir with no card present

Scott Lahteine 6 lat temu
rodzic
commit
d51e5690f4
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1
    2
      Marlin/src/lcd/menu/menu_sdcard.cpp

+ 1
- 2
Marlin/src/lcd/menu/menu_sdcard.cpp Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz