panu demo: fix compile

This commit is contained in:
Matthias Ringwald 2016-02-03 22:31:39 +01:00
parent c5b64319fd
commit 0b4d02b7ed

View File

@ -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
*