diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-07 21:34:03 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-07 21:38:05 +1100 |
| commit | a7ac34eaa9b895e16aed816c504d167027898d7b (patch) | |
| tree | 6b24b92ab28ee55ebf5870f542ad454a8a382e05 /src/drivers/bluetooth.cpp | |
| parent | c1b03c151edc12f9ec46e63ae6fd2744dc2f59b5 (diff) | |
| download | tangara-fw-a7ac34eaa9b895e16aed816c504d167027898d7b.tar.gz | |
hack around deadlock during bt disable
Diffstat (limited to 'src/drivers/bluetooth.cpp')
| -rw-r--r-- | src/drivers/bluetooth.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/bluetooth.cpp b/src/drivers/bluetooth.cpp index f266b51c..1a303748 100644 --- a/src/drivers/bluetooth.cpp +++ b/src/drivers/bluetooth.cpp @@ -86,7 +86,9 @@ auto Bluetooth::Enable() -> bool { } auto Bluetooth::Disable() -> void { - auto lock = bluetooth::BluetoothState::lock(); + // FIXME: the BT tasks unfortunately call back into us while holding an + // internal lock, which then deadlocks with our fsm lock. + // auto lock = bluetooth::BluetoothState::lock(); tinyfsm::FsmList<bluetooth::BluetoothState>::dispatch( bluetooth::events::Disable{}); } |
