Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Added saveConfigSelective #78

Merged
merged 1 commit into from
Mar 12, 2020
Merged

Added saveConfigSelective #78

merged 1 commit into from
Mar 12, 2020

Conversation

PaulZC
Copy link
Collaborator

@PaulZC PaulZC commented Mar 9, 2020

Hi Nathan (@nseidle),

saveConfiguration() works just fine, but it saves all of the M8 configuration sub-sections to Flash and BBR in one go.

This PR adds a new function - saveConfigSelective() - which allows you to decide which sub-sections to save. E.g. you can save navConf to save the dynamic model and geofences, but exclude rxmConf for powerSaveMode if you want to.

Example19 has been updated to demonstrate how to use the new function.

Also included are two minor mods to saveConfiguration() and factoryDefault(). Previously these were only saving / clearing the lowest eight bits of the sub-section mask, so some of the sub-sections were not being saved / cleared. Now, all sub-sections are included.

Enjoy!

Paul

saveConfiguration works just fine, but it saves all the configuration sub-sections to Flash and BBR. saveConfigSelective allows you to decide which sub-sections to save. E.g. you can save navConf to save the dynamic model, but exclude rxmConf for powerSaveMode.
@nseidle
Copy link
Member

nseidle commented Mar 12, 2020

Looks and tests good. Thank you!

@nseidle nseidle merged commit 94f7db5 into sparkfun:master Mar 12, 2020
@PaulZC PaulZC deleted the PaulZC_saveConfigSelective branch March 29, 2020 07:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants