diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-12-10 10:25:44 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-12-10 10:25:44 +1100 |
| commit | 048cfd705f441406f8ce181e2a2f288c98388439 (patch) | |
| tree | 1b252a0175bf801b7904d6c47d37660f3f62a562 /src/tangara/audio | |
| parent | 0810c05d1380fd09f3f29320765f8529c0efe282 (diff) | |
| download | tangara-fw-048cfd705f441406f8ce181e2a2f288c98388439.tar.gz | |
Audio FSM should transit to Standby when BT disconnect
Diffstat (limited to 'src/tangara/audio')
| -rw-r--r-- | src/tangara/audio/audio_fsm.cpp | 2 |
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(); |
