c3fa2497b9
This prevents wear and tear on the flash, and it also is faster in some cases since the read-out of flash is a cheaper operation than the erasure of flash. Some library modules (such as the esp_wifi) write out to NVS upon every initialization without checking first that the existing value is the same, and this speeds up initialization of modules that make these design choices and moves it into a centralized place. The comparison functions are based on the read-out functions of the same name, and changes out the memcpy(...) operations for memcmp(...) operations. Signed-off-by: Tim Nordell <tim.nordell@nimbelink.com> |
||
---|---|---|
.. | ||
crc.cpp | ||
crc.h | ||
esp_error_check_stub.cpp | ||
main.cpp | ||
Makefile | ||
sdkconfig.h | ||
spi_flash_emulation.cpp | ||
spi_flash_emulation.h | ||
test_compressed_enum_table.cpp | ||
test_intrusive_list.cpp | ||
test_nvs.cpp | ||
test_spi_flash_emulation.cpp |