sdcard.cpp: bugfix file end -> close

This commit is contained in:
Verkehrsrot committed 2022-01-29 19:22:16 +01:00
1 parent 793c407f34
commit 581a3aafa5
1 file changed
+2 -1
+2 -1
View File
@@ -16,7 +16,8 @@ File fileSDCard;
bool sdcard_close(void) { bool sdcard_close(void) {
ESP_LOGD(TAG, "unmounting SD-card"); ESP_LOGD(TAG, "unmounting SD-card");
fileSDCard.flush(); fileSDCard.flush();
fileSDCard.end(); fileSDCard.close();
return true;
} }
bool sdcard_init(bool create) { bool sdcard_init(bool create) {