From a0600c7b4c38a2cf62001cbbe67aad25cd6ea975 Mon Sep 17 00:00:00 2001 From: InfiniteYuan Date: Thu, 12 Oct 2023 20:24:21 +0800 Subject: [PATCH] bugfix: nvs_close before nvs_commit --- components/esp_matter/esp_matter_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_core.cpp b/components/esp_matter/esp_matter_core.cpp index 43e6ced45..fa8fc3111 100644 --- a/components/esp_matter/esp_matter_core.cpp +++ b/components/esp_matter/esp_matter_core.cpp @@ -1043,8 +1043,8 @@ esp_err_t factory_reset() nvs_erase_all(node_handle); } - nvs_close(node_handle); nvs_commit(node_handle); + nvs_close(node_handle); endpoint_t *endpoint = endpoint::get_first(node); while (endpoint) {