16M partitions, second nvs

This commit is contained in:
MichaelDvP
2024-02-24 18:32:20 +01:00
parent 6a66c7def7
commit 41ac8120d0
3 changed files with 6 additions and 3 deletions

View File

@@ -1496,7 +1496,9 @@ void EMSESP::start() {
esp8266React.begin(); // loads core system services settings (network, mqtt, ap, ntp etc)
nvs_.begin("ems-esp", false, "nvs");
if (!nvs_.begin("ems-esp", false, "nvs1")) { // try new partition on 16M flash first
nvs_.begin("ems-esp", false, "nvs"); // fallback to first nvs
}
LOG_INFO("Starting EMS-ESP version %s", EMSESP_APP_VERSION); // welcome message
LOG_DEBUG("System is running in Debug mode");