summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tangara/audio/audio_fsm.cpp2
1 files changed, 2 insertions, 0 deletions
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<states::Standby>();
return;
}
auto dev = sServices->bluetooth().pairedDevice();