From fce8135b9c04812add0806ac77f712089d28724b Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Wed, 27 Sep 2023 17:45:37 +0200 Subject: [PATCH] fix --- src/drivers/storage/SDCard.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/drivers/storage/SDCard.cpp b/src/drivers/storage/SDCard.cpp index 89eb984..9fbab53 100644 --- a/src/drivers/storage/SDCard.cpp +++ b/src/drivers/storage/SDCard.cpp @@ -6,7 +6,6 @@ #include "nvMemory.h" #include "..\devices\device.h" #include "SDCard.h" -//#include "..\lib\TFT_eSPI\User_Setup_Select.h" #if defined (BUILD_SDMMC_1) || defined(BUILD_SDMMC_4) #include @@ -17,7 +16,7 @@ #if defined (BUILD_SDMMC_1) || defined(BUILD_SDMMC_4) || defined (BUILD_SDSPI) -/// @param int ID only relevant in SPI mode, if you want to use a non standard SPI Unit. +/// @param int ID only relevant in SPI mode, if you want to set up a custom SPI unit. Ignored in SD bus mode. SDCard::SDCard(int ID):cardInitialized_(false),cardBusy_(false) { #if defined (BUILD_SDMMC_1) || defined(BUILD_SDMMC_4) @@ -35,7 +34,7 @@ SDCard::SDCard(int ID):cardInitialized_(false),cardBusy_(false) } iSD_ = &SD; #endif // interface type -initSDcard(); + initSDcard(); } SDCard::~SDCard() @@ -53,7 +52,7 @@ SDCard::~SDCard() /// @return true if active bool SDCard::cardBusy() { - return !cardBusy_; + return cardBusy_; } /// @brief Transfer settings from config file on a SD card to the device. @@ -189,5 +188,6 @@ void SDCard::SD2nvMemory(nvMemory* nvMem, TSettings* Settings) {}; bool SDCard::loadConfigFile(TSettings* Settings) { return false; } bool SDCard::initSDcard() { return false; } bool SDCard::cardAvailable() { return false; } +bool SDCard::cardBusy() { return false; } -#endif //BUILD_SDMMC \ No newline at end of file +#endif //BUILD_SDMMC