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/audio/audio_fsm.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/audio/audio_fsm.cpp')
| -rw-r--r-- | src/audio/audio_fsm.cpp | 2 |
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); |
