Update sdcard.cpp

This commit is contained in:
August Quint 2020-02-25 15:44:56 +01:00 committed by GitHub
parent b674b5e1b0
commit d0ffe9ab7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,8 @@ bool sdcard_init() {
useSDCard = SD.begin(SDCARD_CS, SDCARD_MOSI, SDCARD_MISO, SDCARD_SCLK); useSDCard = SD.begin(SDCARD_CS, SDCARD_MOSI, SDCARD_MISO, SDCARD_SCLK);
if (useSDCard) if (useSDCard)
createFile(); createFile();
else
ESP_LOGD(TAG,"SD-card not found");
return useSDCard; return useSDCard;
} }
@ -84,4 +86,3 @@ void createFile(void) {
} }
#endif // (HAS_SDCARD) #endif // (HAS_SDCARD)