Skip to content

Commit

Permalink
Only show "SD Init Fail" with detectable media (#19236)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored Sep 3, 2020
1 parent 26858fd commit 1f25312
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Marlin/src/sd/cardreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,10 @@ void CardReader::mount() {

if (flag.mounted)
cdroot();
else if (marlin_state != MF_INITIALIZING)
ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1);
#if ENABLED(USB_FLASH_DRIVE_SUPPORT) || PIN_EXISTS(SD_DETECT)
else if (marlin_state != MF_INITIALIZING)
ui.set_status_P(GET_TEXT(MSG_SD_INIT_FAIL), -1);
#endif

ui.refresh();
}
Expand Down

0 comments on commit 1f25312

Please sign in to comment.