From 048cfd705f441406f8ce181e2a2f288c98388439 Mon Sep 17 00:00:00 2001 From: ailurux Date: Tue, 10 Dec 2024 10:25:44 +1100 Subject: [PATCH] Audio FSM should transit to Standby when BT disconnect --- src/tangara/audio/audio_fsm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tangara/audio/audio_fsm.cpp b/src/tangara/audio/audio_fsm.cpp index 027b3783..63b960e4 100644 --- a/src/tangara/audio/audio_fsm.cpp +++ b/src/tangara/audio/audio_fsm.cpp @@ -283,6 +283,8 @@ void AudioState::react(const system_fsm::BluetoothEvent& ev) { auto bt = sServices->bluetooth(); if (bt.connectionState() != drivers::Bluetooth::ConnectionState::kConnected) { + // If BT Disconnected, move to standby state + transit(); return; } auto dev = sServices->bluetooth().pairedDevice();