bugfix: nvs_close before nvs_commit

This commit is contained in:
InfiniteYuan
2023-10-12 20:24:21 +08:00
parent 79dfcc7b9d
commit a0600c7b4c
+1 -1
View File
@@ -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) {