Skip to content

Commit

Permalink
Only show "SD Init Fail" with detectable media (MarlinFirmware#19236)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and thinkyhead committed Apr 29, 2021
1 parent ffba220 commit 6a511b6
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 6a511b6

Please sign in to comment.