Repository navigation
Settings now live in a file on internal flash.
Settings storage
- Settings, saved Wi-Fi networks, paired hosts and LED effects are in
/thronectl/cfgon a LittleFS volume. The volume uses the 1.5 MBspiffspartition that the firmware already had, so the partition table does not change. - Each save writes a temporary file and then renames it. A power cut leaves the old or the new settings, never a half-written file.
- NVS keeps only the device key, so a reformatted volume does not make you pair again.
- Standalone install: the device formats the partition on first start. Under Launcher, it formats the partition only when it is blank, because the partition can hold another app's files. If a different file system is already there, settings stay in NVS.
- Factory reset clears both the flash folder and NVS.
- About shows where settings are kept and how much space is in use.
Upgrade note
Settings from 0.6.x are not copied over. After this update the device starts with default settings, so add your Wi-Fi network and pair with your host again. The device key stays the same.
Checks
Host checks passed: new storecheck (atomic saves, power-cut leftovers, wipe, Bluetooth boot check), daemon tests (40) and build, blecheck, linkcheck, ledcheck, keyfuzz seeds 1, 7, 42 and 1234 at 200000 steps, snapshots, firmware build.
Not tested on hardware yet: the LittleFS mount and format on the device, and the blank check under Launcher.
Install
Flash thronectl-cardputer-adv-v0.7.0.bin at offset 0x0, or update from the device. SHA-256:
f17b7646881827b45d3a86eeb2373f308473c9be7823663a8f87bb54422cf7c1 thronectl-cardputer-adv-v0.7.0.bin