summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
diff options
context:
space:
mode:
authorJames A. Jerkins <evergreen@jamesjerkinscomputer.com>2021-12-04 14:49:49 -0600
committerJF <JF002@users.noreply.github.com>2021-12-09 21:14:16 +0100
commit150fa3b6615e524a072a1af6d6728519381fa737 (patch)
tree32d3a0f5885c5d51ed5db405e67a7b14f83142f9 /src/systemtask/SystemTask.cpp
parent1e4130a9cfe6e1385d83d93e544d1e1cd79f11f8 (diff)
Persist bond between reboots
Save bond information in the FS after a disconnect or encryption change if the bond is not already stored. The bond is restored on boot enabling automatic reconnection to a previously bonded central. Two consecutive watch reboots with the central out of range (or BLE off) will remove the stored bond from the watch.
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
-rw-r--r--src/systemtask/SystemTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 2fb4de51..215c78a5 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -109,7 +109,8 @@ SystemTask::SystemTask(Drivers::SpiMaster& spi,
batteryController,
spiNorFlash,
heartRateController,
- motionController) {
+ motionController,
+ fs) {
}
void SystemTask::Start() {