fix
This commit is contained in:
parent
91ae5ef60c
commit
83938f7210
@ -37,7 +37,7 @@ SDCard::~SDCard()
|
|||||||
SD_MMC.end();
|
SD_MMC.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDCard::SD2nvMemory(NVMem* nvMem)
|
void SDCard::SD2nvMemory(nvMemory* nvMem)
|
||||||
{
|
{
|
||||||
TSettings Settings;
|
TSettings Settings;
|
||||||
if (loadConfigFile(&Settings))
|
if (loadConfigFile(&Settings))
|
||||||
@ -143,7 +143,7 @@ bool SDCard::initSDcard()
|
|||||||
|
|
||||||
SDCard::SDCard() {}
|
SDCard::SDCard() {}
|
||||||
SDCard::~SDCard() {}
|
SDCard::~SDCard() {}
|
||||||
void SDCard::SD2nvMemory(nvMemory* nvMem) {};
|
void SDCard::SD2NVMemory(NVMemory* nvMem) {};
|
||||||
bool SDCard::loadConfigFile(TSettings* Settings) { return false; }
|
bool SDCard::loadConfigFile(TSettings* Settings) { return false; }
|
||||||
bool SDCard::initSDcard() { return false; }
|
bool SDCard::initSDcard() { return false; }
|
||||||
|
|
||||||
|
@ -91,8 +91,7 @@ void init_WifiManager()
|
|||||||
if (!SDCrd.loadConfigFile(&Settings))
|
if (!SDCrd.loadConfigFile(&Settings))
|
||||||
{
|
{
|
||||||
//No config file on SD card.
|
//No config file on SD card.
|
||||||
SDCrd.SD2nvMemory(&nvMem); // reboot on success.
|
SDCrd.SD2nvMemory(&nvMem); // reboot on success.
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user