From 581a3aafa5efdcd52b4b2cd058792dfdae83a262 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 29 Jan 2022 19:22:16 +0100 Subject: [PATCH] sdcard.cpp: bugfix file end -> close --- src/sdcard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdcard.cpp b/src/sdcard.cpp index da204982..e19630c2 100644 --- a/src/sdcard.cpp +++ b/src/sdcard.cpp @@ -16,7 +16,8 @@ File fileSDCard; bool sdcard_close(void) { ESP_LOGD(TAG, "unmounting SD-card"); fileSDCard.flush(); - fileSDCard.end(); + fileSDCard.close(); +return true; } bool sdcard_init(bool create) {