summaryrefslogtreecommitdiff
path: root/src/audio/audio_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-04-23 10:19:25 +1000
committerjacqueline <me@jacqueline.id.au>2024-04-23 10:19:25 +1000
commit531475e3511e9c722677d3a351b51d4a579876df (patch)
treee032b21012c39576ab13a07851a7040e4dd0f13e /src/audio/audio_fsm.cpp
parent84dbe074c5543a7ce38c80b8dae1499b7aa83003 (diff)
downloadtangara-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/audio/audio_fsm.cpp')
-rw-r--r--src/audio/audio_fsm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp
index 91ba7df0..ffb462f8 100644
--- a/src/audio/audio_fsm.cpp
+++ b/src/audio/audio_fsm.cpp
@@ -442,6 +442,8 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) {
drivers::NvsStorage::Output::kHeadphones) {
sOutput = sI2SOutput;
} else {
+ // Ensure Bluetooth gets enabled if it's the default sink.
+ sServices->bluetooth().Enable();
sOutput = sBtOutput;
}
sOutput->mode(IAudioOutput::Modes::kOnPaused);