mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
move factory log down so it gets displayed in log
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user