Audio FSM should transit to Standby when BT disconnect

custom
ailurux 4 months ago
parent 0810c05d13
commit 048cfd705f
  1. 2
      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();

Loading…
Cancel
Save