From 531475e3511e9c722677d3a351b51d4a579876df Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 23 Apr 2024 10:19:25 +1000 Subject: Enable bluetooth after boot, not during boot This avoids some bluetooth-related devices being delivered before BootComplete --- src/audio/audio_fsm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/audio/audio_fsm.cpp') 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); -- cgit v1.2.3