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 *