summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-02-07 21:34:03 +1100
committerjacqueline <me@jacqueline.id.au>2024-02-07 21:38:05 +1100
commita7ac34eaa9b895e16aed816c504d167027898d7b (patch)
tree6b24b92ab28ee55ebf5870f542ad454a8a382e05 /src
parentc1b03c151edc12f9ec46e63ae6fd2744dc2f59b5 (diff)
downloadtangara-fw-a7ac34eaa9b895e16aed816c504d167027898d7b.tar.gz
hack around deadlock during bt disable
Diffstat (limited to 'src')
-rw-r--r--src/drivers/bluetooth.cpp4
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{});
}