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

Include nvs_commit() on three methods #5309

Merged
merged 3 commits into from
Aug 23, 2021
Merged

Conversation

beamholder
Copy link
Contributor

In response to Issue #4972

In Preferences.cpp, the functions:

Preferences::clear()
Preferences::remove()
Preferences::end()

should be revised to include a call to
nvs_commit()
as required per
Non-volatile storage library
when using

nvs_erase_all()
nvs_erase_key()
nvs_close()

In [Preferences.cpp](https://github.com/espressif/arduino-esp32/blob/master/libraries/Preferences/src/Preferences.cpp),  the functions:
```
Preferences::clear()
Preferences::remove()
Preferences::end()
```
should be revised to include a call to 
`nvs_commit()`
as required per 
[Non-volatile storage library](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/nvs_flash.html)
when using 
```
nvs_erase_all()
nvs_erase_key()
nvs_close()
```
@CLAassistant
Copy link

CLAassistant commented Jun 19, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@igrr igrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @beamholder, it is useful! Some minor requests below...

@beamholder
Copy link
Contributor Author

@igrr As I'm new two this whole Github/ Arduino-ESP32 thing, just wondering if this PR is now all good or is there is something else I need to do before it is merged? Thanks.

@Xylopyrographer
Copy link
Contributor

Xylopyrographer commented Aug 23, 2021 via email

@igrr
Copy link
Member

igrr commented Aug 23, 2021

@me-no-dev this PR looks good to me, please consider it for the next release.

@me-no-dev me-no-dev merged commit 0730e0e into espressif:master Aug 23, 2021
@me-no-dev
Copy link
Member

@igrr @beamholder done :)

@Xylopyrographer
Copy link
Contributor

Xylopyrographer commented Aug 23, 2021 via email

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

Successfully merging this pull request may close these issues.

5 participants