mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-10 06:40:23 +00:00
sm: only send commands when HCI_STATE_WORKING
This commit is contained in:
parent
ec111c8bcd
commit
1b1c95e9d6
@ -1881,6 +1881,9 @@ static void sm_run(void){
|
||||
|
||||
btstack_linked_list_iterator_t it;
|
||||
|
||||
// assert that stack has already bootet
|
||||
if (hci_get_state() != HCI_STATE_WORKING) return;
|
||||
|
||||
// assert that we can send at least commands
|
||||
if (!hci_can_send_command_packet_now()) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user