fix bootloop with missing version

This commit is contained in:
proddy
2024-07-28 09:26:02 +02:00
parent 0edb5c0fd9
commit f4781b91c2
3 changed files with 8 additions and 11 deletions

View File

@@ -1601,7 +1601,7 @@ void EMSESP::start() {
// start the file system
#ifndef EMSESP_STANDALONE
if (!LittleFS.begin(true)) {
Serial.println("LittleFS Mount Failed. Using default settings.");
LOG_INFO("LittleFS Mount Failed. Using default settings.");
return;
}
#endif
@@ -1612,9 +1612,7 @@ void EMSESP::start() {
File root = LittleFS.open("/config");
bool factory_settings = !root;
if (!root) {
#if defined(EMSESP_DEBUG)
Serial.println("No config found, assuming factory settings");
#endif
LOG_INFO("No config found, assuming factory settings");
}
root.close();
#else
@@ -1644,8 +1642,6 @@ void EMSESP::start() {
system_.system_restart();
};
webSettingsService.begin(); // load EMS-ESP Application settings...
// do any system upgrades