Update sdcard.cpp
This commit is contained in:
1 parent
b674b5e1b0
commit
d0ffe9ab7e
1 file changed
+2
-1
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user