From 0b4d02b7ed12d2b273d5931f0251174e097e8cf6 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 3 Feb 2016 22:31:39 +0100 Subject: [PATCH] panu demo: fix compile --- example/embedded/panu_demo.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/embedded/panu_demo.c b/example/embedded/panu_demo.c index cff98e59d..17118f756 100644 --- a/example/embedded/panu_demo.c +++ b/example/embedded/panu_demo.c @@ -135,12 +135,13 @@ static btstack_packet_callback_registration_t hci_event_callback_registration; /* LISTING_START(PanuSetup): Panu setup */ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); +static void hci_event_handler(uint8_t packet_type, uint8_t * packet, uint16_t size); static void handle_sdp_client_query_result(uint8_t packet_type, uint8_t *packet, uint16_t size); static void panu_setup(void){ // register for HCI events - hci_event_callback_registration.callback = &packet_handler; + hci_event_callback_registration.callback = &hci_event_handler; hci_add_event_handler(&hci_event_callback_registration); // Initialize L2CAP @@ -420,6 +421,10 @@ static void handle_sdp_client_query_result(uint8_t packet_type, uint8_t *packet, } } +static void hci_event_handler(uint8_t packet_type, uint8_t * packet, uint16_t size){ + packet_handler(packet_type, 0, packet, size); +} + /* * @section Packet Handler *