move factory log down so it gets displayed in log

This commit is contained in:
proddy
2025-11-10 21:23:35 +01:00
parent 1f6462be38
commit 891619fa26

View File

@@ -1703,9 +1703,6 @@ void EMSESP::start() {
#ifndef EMSESP_STANDALONE
File root = LittleFS.open(EMSESP_SETTINGS_FILE);
bool factory_settings = !root;
if (!root) {
LOG_WARNING("No settings found on filesystem. Using factory settings.");
}
root.close();
#else
bool factory_settings = false;
@@ -1717,6 +1714,10 @@ void EMSESP::start() {
// loads core system services settings (network, mqtt, ap, ntp etc)
esp32React.begin();
if (!root) {
LOG_WARNING("No settings found on filesystem. Using factory settings.");
}
#ifndef EMSESP_STANDALONE
LOG_INFO("EMS-ESP version %s", EMSESP_APP_VERSION);
LOG_DEBUG("Boot partition %s, Active partition %s", esp_ota_get_boot_partition()->label, esp_ota_get_running_partition()->label);