]> granicus.if.org Git - esp-idf/commit
nvs_flash: don't allow more operation to be done on page in PageState::INVALID
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 31 Oct 2016 11:48:28 +0000 (19:48 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 31 Oct 2016 11:48:28 +0000 (19:48 +0800)
commitd9cdc7de5811a450919518b5ea8d6a8edd0a960f
tree4152ad30379cda48f9fb38fd9b322213bb2a70a6
parent413f2c00f69ff6ce9777eab366280eb82cb3ac35
nvs_flash: don't allow more operation to be done on page in PageState::INVALID

Currently a restart is required to recover a page from invalid state.
The long-term solution is to detect such a condition and recover automatically (without a restart). This will be implemented in a separate change set.
components/nvs_flash/src/nvs_page.cpp
components/nvs_flash/test/spi_flash_emulation.h
components/nvs_flash/test/test_nvs.cpp