Page 1 of 1

NVS duplicate writes

Posted: Thu Feb 13, 2020 3:34 pm
by Pakuee
When updating a value of a key-value pair in NVS, does it check if the value changed or stayed the same?
I currently compare the saved value with the new one before writing to avoid unnecessary flash writes. However if the NVS backend does that already that would save some code and runtime.

-Patrick

Re: NVS duplicate writes

Posted: Fri Feb 14, 2020 4:38 pm
by Pakuee
Going through IDF 4.0 release notes, it seems to be included from https://github.com/espressif/esp-idf/pull/3310