diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-04-23 10:19:25 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-04-23 10:19:25 +1000 |
| commit | 531475e3511e9c722677d3a351b51d4a579876df (patch) | |
| tree | e032b21012c39576ab13a07851a7040e4dd0f13e /src/system_fsm/booting.cpp | |
| parent | 84dbe074c5543a7ce38c80b8dae1499b7aa83003 (diff) | |
| download | tangara-fw-531475e3511e9c722677d3a351b51d4a579876df.tar.gz | |
Enable bluetooth after boot, not during boot
This avoids some bluetooth-related devices being delivered before
BootComplete
Diffstat (limited to 'src/system_fsm/booting.cpp')
| -rw-r--r-- | src/system_fsm/booting.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp index a89f35d9..44700cc4 100644 --- a/src/system_fsm/booting.cpp +++ b/src/system_fsm/booting.cpp @@ -109,12 +109,6 @@ auto Booting::entry() -> void { sServices->nvs(), sServices->bg_worker())); sServices->bluetooth().SetEventHandler(bt_event_cb); - if (sServices->nvs().OutputMode() == - drivers::NvsStorage::Output::kBluetooth) { - ESP_LOGI(kTag, "enabling bluetooth"); - sServices->bluetooth().Enable(); - } - BootComplete ev{.services = sServices}; events::Audio().Dispatch(ev); events::Ui().Dispatch(ev); |
