From a07916900537f17ce41f593c41165f047f025d1a Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 20 Apr 2026 13:18:50 +0200 Subject: [PATCH] backup nvs1 if exist --- src/core/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index 6478465b2..b29e3f4c1 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1767,7 +1767,7 @@ void System::exportSystemBackup(JsonObject output) { node = nodes.add(); node["type"] = "nvs"; - const char * nvs_part = "nvs"; + const char * nvs_part = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_NVS, "nvs1") ? "nvs1" : "nvs"; // nvs1 is on 16MBs nvs_iterator_t it = nullptr; #if ESP_IDF_VERSION_MAJOR < 5 it = nvs_entry_find(nvs_part, "ems-esp", NVS_TYPE_ANY);