浏览代码

Don't show updir with no card present

Scott Lahteine 6 年前
父节点
当前提交
d51e5690f4
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      Marlin/src/lcd/menu/menu_sdcard.cpp

+ 1
- 2
Marlin/src/lcd/menu/menu_sdcard.cpp 查看文件

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

正在加载...
取消
保存