This commit is contained in:
elmo128 2023-09-15 12:43:16 +02:00
parent a694427b7c
commit cc1832641b

View File

@ -87,14 +87,14 @@ void init_WifiManager()
{ {
//No config file on internal flash. //No config file on internal flash.
SDCard SDCrd; SDCard SDCrd;
if (!SDCrd.loadConfigFile(&Settings)) if (SDCrd.loadConfigFile(&Settings))
{ {
//No config file on SD card. //Config file on SD card.
SDCrd.SD2nvMemory(&nvMem); // reboot on success. SDCrd.SD2nvMemory(&nvMem); // reboot on success.
} }
else else
{ {
//Config file on SD card. Copy and restart. //No config file on SD card. Starting wifi config server.
forceConfig = true; forceConfig = true;
} }
}; };