cyclops1982 / RAKTracker

Example code that get's a distance measure and sends it via lora. First implementation. Very basic.
0 stars 0 forks source link

Try `saveConfiguration()` on GNSS library #20

Open cyclops1982 opened 5 months ago

cyclops1982 commented 5 months ago

Spotted in https://github.com/RAKWireless/RUI3-Best-Practice/blob/6b84538972cbafc1f40fa21ea5b69373755957a3/RUI3-GNSS/gnss.cpp#L105

The comments state that this is the old way of saving config, but i wonder what the difference is. We also do multiple saveConfigurationSelective calls, so maybe we can just replace it with one.

cyclops1982 commented 5 months ago

saveConfiguration() is noted as being the 'old' way of doing things, which is not super clear from the ublox documentation. The factoryReset() that we do at startup resets all the savedConfig.

The saveConfigSelective() that we are using now also stores it, but selective to what we configured. This theoretically means that we should be able to use saveConfiguration() and do one write instead of multiple saveConfigSelective() calls.