Xylopyrographer / STAC

A Roland Smart Tally Atom Client
Other
3 stars 0 forks source link

Add auto config for NVS Prefs #25

Closed Xylopyrographer closed 3 years ago

Xylopyrographer commented 3 years ago

Add a mechanism that wipes & recreates the Preferences NVS space if required by a structure change in the software.

Would remove the requirement for the user to data factory reset before upgrading the software.

Bonus points if the previous configuration data is preserved.

Xylopyrographer commented 3 years ago

STAC now stores the last software version in NVS. On startup, if the run version does not match, the STAC resets the NVS storage area, forcing the run version to rebuild the NVS data structures and a reconfiguration. Basically equivalent to doing a factory reset.