sm: only send commands when HCI_STATE_WORKING

This commit is contained in:
Matthias Ringwald 2017-07-04 17:31:04 +02:00
parent ec111c8bcd
commit 1b1c95e9d6

View File

@ -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;