From 83938f72101ed56c5c4feeb32017e8b84ccbfe18 Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Fri, 15 Sep 2023 00:32:25 +0200 Subject: [PATCH] fix --- src/drivers/storage/SDCard.h | 4 ++-- src/wManager.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/drivers/storage/SDCard.h b/src/drivers/storage/SDCard.h index 8734178..bf7f2b7 100644 --- a/src/drivers/storage/SDCard.h +++ b/src/drivers/storage/SDCard.h @@ -37,7 +37,7 @@ SDCard::~SDCard() SD_MMC.end(); } -void SDCard::SD2nvMemory(NVMem* nvMem) +void SDCard::SD2nvMemory(nvMemory* nvMem) { TSettings Settings; if (loadConfigFile(&Settings)) @@ -143,7 +143,7 @@ bool SDCard::initSDcard() SDCard::SDCard() {} SDCard::~SDCard() {} -void SDCard::SD2nvMemory(nvMemory* nvMem) {}; +void SDCard::SD2NVMemory(NVMemory* nvMem) {}; bool SDCard::loadConfigFile(TSettings* Settings) { return false; } bool SDCard::initSDcard() { return false; } diff --git a/src/wManager.cpp b/src/wManager.cpp index bb8ccde..dab719e 100644 --- a/src/wManager.cpp +++ b/src/wManager.cpp @@ -91,8 +91,7 @@ void init_WifiManager() if (!SDCrd.loadConfigFile(&Settings)) { //No config file on SD card. - SDCrd.SD2nvMemory(&nvMem); // reboot on success. - + SDCrd.SD2nvMemory(&nvMem); // reboot on success. } else {