From 544b0013b104a6584660724ccd502adcccd7ca6c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 15 Aug 2023 17:32:57 +1000 Subject: persist preferred bluetooth device in nvs --- src/system_fsm/booting.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/system_fsm/booting.cpp') 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. -- cgit v1.2.3