mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 15:41:00 +00:00
continue HCI init when module reports errors in command staus events
This commit is contained in:
parent
e267304ba0
commit
f155fca394
@ -671,7 +671,7 @@ static void event_handler(uint8_t *packet, int size){
|
||||
// handle normal init sequence
|
||||
if (hci_stack.substate % 2){
|
||||
// odd: waiting for event
|
||||
if (packet[0] == HCI_EVENT_COMMAND_COMPLETE){
|
||||
if (packet[0] == HCI_EVENT_COMMAND_COMPLETE || packet[0] == HCI_EVENT_COMMAND_STATUS){
|
||||
hci_stack.substate++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user