Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: nvs: Add recovery path for corrupted NVS
When all sectors of the settings partition have some data that is not 0xFF, NVS will fail to initialize settings. Add a recovery path to erase the whole settings partition and recover. Should not happen unless there's some serious flash corruption, or possibly interrupted garbage collection. Verified by recreating the scenario with flash CLIs. Signed-off-by: Cory Andrew Mayer <[email protected]>
- Loading branch information