Browse Source

Only show "SD Init Fail" with detectable media (#19236)

Victor Oliveira 4 years ago
parent
commit
1f25312b65
No account linked to committer's email address
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/sd/cardreader.cpp

+ 4
- 2
Marlin/src/sd/cardreader.cpp View File

@@ -383,8 +383,10 @@ void CardReader::mount() {
383 383
 
384 384
   if (flag.mounted)
385 385
     cdroot();
386
-  else if (marlin_state != MF_INITIALIZING)
387
-    ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1);
386
+  #if ENABLED(USB_FLASH_DRIVE_SUPPORT) || PIN_EXISTS(SD_DETECT)
387
+    else if (marlin_state != MF_INITIALIZING)
388
+      ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1);
389
+  #endif
388 390
 
389 391
   ui.refresh();
390 392
 }

Loading…
Cancel
Save