mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Fix ESP32 invalid initial NVM config count
This commit is contained in:
parent
56df030bac
commit
097a556e99
@ -685,10 +685,15 @@ void SettingsLoad(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // ESP8266
|
#endif // ESP8266
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
uint32_t source = SettingsRead(Settings, sizeof(TSettings));
|
uint32_t source = SettingsRead(Settings, sizeof(TSettings));
|
||||||
if (source) { settings_location = 1; }
|
if (source) {
|
||||||
AddLog(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG "Loaded from %s, " D_COUNT " %lu"), (source)?"File":"Nvm", Settings->save_flag);
|
settings_location = 1;
|
||||||
|
if (Settings->cfg_holder == (uint16_t)CFG_HOLDER) {
|
||||||
|
AddLog(LOG_LEVEL_NONE, PSTR(D_LOG_CONFIG "Loaded from %s, " D_COUNT " %lu"), (source)?"File":"Nvm", Settings->save_flag);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif // ESP32
|
#endif // ESP32
|
||||||
|
|
||||||
#ifndef FIRMWARE_MINIMAL
|
#ifndef FIRMWARE_MINIMAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user