From 0d3b00a2433d06579225200bf17e0ee1113a69e1 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 31 Mar 2015 21:47:59 +0200 Subject: [PATCH] fix init for EM9301 module --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index fadc48fca..3e8d00e61 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1008,7 +1008,7 @@ static void hci_initializing_event_handler(uint8_t * packet, uint16_t size){ } } // Vendor == CSR - if (packet[0] == HCI_EVENT_VENDOR_SPECIFIC){ + if (hci_stack->substate == HCI_INIT_W4_CUSTOM_INIT && packet[0] == HCI_EVENT_VENDOR_SPECIFIC){ // TODO: track actual command command_completed = 1; }