Free the SDCard heap space
This commit is contained in:
parent
8d3349d080
commit
f7de7fc453
@ -176,7 +176,7 @@ bool SDCard::cardAvailable()
|
||||
/// @return true on success
|
||||
bool SDCard::initSDcard()
|
||||
{
|
||||
if (!cardAvailable())
|
||||
if (!cardAvailable())
|
||||
{
|
||||
Serial.println("SDCard: init SD card interface.");
|
||||
#if defined (BUILD_SDMMC_4)
|
||||
@ -204,7 +204,6 @@ bool SDCard::initSDcard()
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
SDCard::SDCard(int ID) {}
|
||||
SDCard::~SDCard() {}
|
||||
void SDCard::SD2nvMemory(nvMemory* nvMem, TSettings* Settings) {};
|
||||
@ -212,6 +211,5 @@ bool SDCard::loadConfigFile(TSettings* Settings) { return false; }
|
||||
bool SDCard::initSDcard() { return false; }
|
||||
bool SDCard::cardAvailable() { return false; }
|
||||
bool SDCard::cardBusy() { return false; }
|
||||
void SDCard::terminate() {};
|
||||
|
||||
void SDCard::terminate() {}
|
||||
#endif //BUILD_SDMMC
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
bool loadConfigFile(TSettings* Settings);
|
||||
bool cardAvailable();
|
||||
bool cardBusy();
|
||||
void terminate();
|
||||
void terminate();
|
||||
private:
|
||||
bool initSDcard();
|
||||
bool cardInitialized_;
|
||||
|
@ -109,7 +109,7 @@ void init_WifiManager()
|
||||
}
|
||||
};
|
||||
|
||||
// Free the memory from SDCard class
|
||||
// Free the memory from SDCard class
|
||||
SDCrd.terminate();
|
||||
|
||||
// Reset settings (only for development)
|
||||
|
Loading…
Reference in New Issue
Block a user