mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 09:35:42 +00:00
panu demo: fix compile
This commit is contained in:
parent
c5b64319fd
commit
0b4d02b7ed
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user