HI!
I use flash data storage (fds) to store some user inputs in flash. Everything works fine, but I am surprised by the fact that the function fds_record_update() is not smart enough to detect when an attempt is made to replace an existing record with exactly the same data.
Instead, fds_record_update()will invalidate the existing record and create a new one (exactly the same).
This causes unnecessary flash wear!
I know that I could check at every occasion before writing to the flash, if data have changed or not. But in my opinion this is something so simple that it should be implemented directly inside fds_record_update()before writing to the flash.
Or maybe, there is some good reason why this has not (yet) been done?
Thank you!