summaryrefslogtreecommitdiff
path: root/src/system_fsm/booting.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-15 17:32:57 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-15 17:32:57 +1000
commit544b0013b104a6584660724ccd502adcccd7ca6c (patch)
tree46b140ca9d51cdc14f0004ce64c7b89d021d5fce /src/system_fsm/booting.cpp
parentd6b83fcf4a1a3039c06e0b1d1a1f7e2af2351efb (diff)
downloadtangara-fw-544b0013b104a6584660724ccd502adcccd7ca6c.tar.gz
persist preferred bluetooth device in nvs
Diffstat (limited to 'src/system_fsm/booting.cpp')
-rw-r--r--src/system_fsm/booting.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp
index 7bd5f890..1fc01976 100644
--- a/src/system_fsm/booting.cpp
+++ b/src/system_fsm/booting.cpp
@@ -62,7 +62,8 @@ auto Booting::entry() -> void {
}
ESP_LOGI(kTag, "starting bluetooth");
- sBluetooth.reset(new drivers::Bluetooth());
+ sBluetooth.reset(new drivers::Bluetooth(sNvs.get()));
+ // sBluetooth->Enable();
// At this point we've done all of the essential boot tasks. Start remaining
// state machines and inform them that the system is ready.