mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
bugfix: nvs_close before nvs_commit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user