hack around deadlock during bt disable

custom
jacqueline 1 year ago
parent c1b03c151e
commit a7ac34eaa9
  1. 4
      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{});
}

Loading…
Cancel
Save