From a587c131abf6f124d47df9fb30c5444c8b993cb9 Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Thu, 28 Sep 2023 06:05:45 +0200 Subject: [PATCH] Update SDCard.cpp fix --- src/drivers/storage/SDCard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/storage/SDCard.cpp b/src/drivers/storage/SDCard.cpp index 9fbab53..2364106 100644 --- a/src/drivers/storage/SDCard.cpp +++ b/src/drivers/storage/SDCard.cpp @@ -40,11 +40,13 @@ SDCard::SDCard(int ID):cardInitialized_(false),cardBusy_(false) SDCard::~SDCard() { iSD_->end(); +#ifdef BUILD_SDSPI if(newInstance_) { ispi_->end(); delete ispi_; } +#endif // BUILD_SDSPI Serial.println("SDCard: Unmounted"); }