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

implement persistent settings for linux arch #1109

Merged
merged 3 commits into from
Feb 15, 2015
Merged

Conversation

flixr
Copy link
Member

@flixr flixr commented Feb 15, 2015

Write persistent settings to a binary file (by default pprz_persistent_settings.binary in same directory).

On loading it also check the file size matches the PersistentSettings struct size to detect if persistent settings were added/removed). While this doesn't catch all errors (like replacing a setting of same size), it should be good enough for most cases...

Should close #969

@gautierhattenberger
Copy link
Member

I looks good to me (although I can't test it this week).

@flixr
Copy link
Member Author

flixr commented Feb 15, 2015

Tested and works on the BBB...
Originally I wanted to write a human readable/editable settings file, but this was the easiest for now without adding extra dependencies...
Merging, if someone comes up with a better validation procedure we can still add it later.

flixr added a commit that referenced this pull request Feb 15, 2015
implement persistent settings for linux arch

Write persistent settings to a binary file (by default pprz_persistent_settings.binary in same directory).

On loading it also check the file size matches the PersistentSettings struct size to detect if persistent settings were added/removed). While this doesn't catch all errors (like replacing a setting of same size), it should be good enough for most cases...

Closes #969
@flixr flixr merged commit 2c0d511 into master Feb 15, 2015
@flixr flixr deleted the linux_persistent_settings branch February 15, 2015 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

persistent settings for omap/linux arch
2 participants