From d0ffe9ab7efb1553fba10390d41309787f2aec1a Mon Sep 17 00:00:00 2001 From: August Quint <49277349+AugustQu@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:44:56 +0100 Subject: [PATCH] Update sdcard.cpp --- src/sdcard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdcard.cpp b/src/sdcard.cpp index 780efef9..002cfdf8 100644 --- a/src/sdcard.cpp +++ b/src/sdcard.cpp @@ -24,6 +24,8 @@ bool sdcard_init() { useSDCard = SD.begin(SDCARD_CS, SDCARD_MOSI, SDCARD_MISO, SDCARD_SCLK); if (useSDCard) createFile(); + else + ESP_LOGD(TAG,"SD-card not found"); return useSDCard; } @@ -84,4 +86,3 @@ void createFile(void) { } #endif // (HAS_SDCARD) -