NVS duplicate writes

Pakuee
Posts: 4
Joined: Wed Jun 12, 2019 11:40 pm

NVS duplicate writes

Postby Pakuee » Thu Feb 13, 2020 3:34 pm

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

Pakuee
Posts: 4
Joined: Wed Jun 12, 2019 11:40 pm

Re: NVS duplicate writes

Postby Pakuee » Fri Feb 14, 2020 4:38 pm

Going through IDF 4.0 release notes, it seems to be included from https://github.com/espressif/esp-idf/pull/3310

Who is online

Users browsing this forum: Baidu [Spider], forrest and 183 guests