Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding overwriting data #293

Open
crisvdn opened this issue Dec 19, 2022 · 0 comments
Open

Question regarding overwriting data #293

crisvdn opened this issue Dec 19, 2022 · 0 comments

Comments

@crisvdn
Copy link

crisvdn commented Dec 19, 2022

What is the correct usage of overwriting data in a file, without clearing bits of flash?

Our use case is the following:
We have multiple files with settings. When a setting value is changed, only that specific field should be changed.
Now, the data is appended in that specific file. Should I open the file in a different mode and just write to it? (so it overwrites?).

I am worried that this might reset the bits and increases wear on flash, is this the way to go and handled in the API?

The other option is just delete the file and create it again with new data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant