mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
16M partitions, second nvs
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user