From 14f9d7f52fdafaab6b5e1d3463e8697ed0f5cf80 Mon Sep 17 00:00:00 2001 From: Eric Helgeson Date: Sat, 22 Aug 2026 09:45:24 -0500 Subject: [PATCH] fix: don't log each error, let caller log instead (#323) --- src/BlueSCSI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index 2f511af6..8a5ca4ad 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -899,7 +899,6 @@ STATIC_TESTABLE bool mountSDCard() // Do we have any kind of card? if (!SD.card() || SD.sdErrorCode() != 0) { - logmsg("SD Error Code: ", SD.sdErrorCode()); return false; } @@ -1453,6 +1452,11 @@ STATIC_TESTABLE void bluescsi_setup_sd_card(bool wait_for_card = true) { logmsg("======== Reinitializing BlueSCSI after reclock ========"); g_sdcard_present = mountSDCard(); + if (!g_sdcard_present) + { + logmsg("SD card init failed after reclock, sdErrorCode: ", (int)SD.sdErrorCode(), + " sdErrorData: ", (int)SD.sdErrorData()); + } } } else