Skip to content

Commit

Permalink
Merge branch 'bugfix/nvs_commit' into 'main'
Browse files Browse the repository at this point in the history
bugfix: nvs_close before nvs_commit

See merge request app-frameworks/esp-matter!511
  • Loading branch information
chshu committed Oct 18, 2023
2 parents 1fa0968 + a0600c7 commit bbdf797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_matter/esp_matter_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bbdf797

Please sign in to comment.