From c8db4fb6b1dbea361b9d6ab2760ff640e59a9e69 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 24 Mar 2016 22:49:36 +0100 Subject: [PATCH] runloop: fix compile in hci_transport_h4_ehcill_embedded --- platform/embedded/hci_transport_h4_ehcill_embedded.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/embedded/hci_transport_h4_ehcill_embedded.c b/platform/embedded/hci_transport_h4_ehcill_embedded.c index 20190c465..fd95eb3f1 100644 --- a/platform/embedded/hci_transport_h4_ehcill_embedded.c +++ b/platform/embedded/hci_transport_h4_ehcill_embedded.c @@ -409,13 +409,11 @@ static void h4_process(btstack_data_source_t *ds, btstack_data_source_callback_t packet_handler(HCI_EVENT_PACKET, &event[0], sizeof(event)); } - if (h4_state != H4_PACKET_RECEIVED) return 0; - + if (h4_state != H4_PACKET_RECEIVED) return; + packet_handler(hci_packet[0], &hci_packet[1], read_pos-1); h4_rx_init_sm(); - - return 0; } //////////////////////////