Skip to content

Commit 92db68f

Browse files
authored
Merge pull request #419 from BlueSCSI/eric/issue323
fix: don't log each error, let caller log instead (#323)
2 parents 50f77b2 + 14f9d7f commit 92db68f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/BlueSCSI.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,6 @@ STATIC_TESTABLE bool mountSDCard()
899899

900900
// Do we have any kind of card?
901901
if (!SD.card() || SD.sdErrorCode() != 0) {
902-
logmsg("SD Error Code: ", SD.sdErrorCode());
903902
return false;
904903
}
905904

@@ -1453,6 +1452,11 @@ STATIC_TESTABLE void bluescsi_setup_sd_card(bool wait_for_card = true)
14531452
{
14541453
logmsg("======== Reinitializing BlueSCSI after reclock ========");
14551454
g_sdcard_present = mountSDCard();
1455+
if (!g_sdcard_present)
1456+
{
1457+
logmsg("SD card init failed after reclock, sdErrorCode: ", (int)SD.sdErrorCode(),
1458+
" sdErrorData: ", (int)SD.sdErrorData());
1459+
}
14561460
}
14571461
}
14581462
else

0 commit comments

Comments
 (0)