From 186bfbec4d268f6670e2062d4b4b27aba7bdc46b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 30 Sep 2016 09:48:26 +0200 Subject: [PATCH] examples: register hci event handler --- example/hfp_ag_demo.c | 1 + example/hfp_hf_demo.c | 1 + 2 files changed, 2 insertions(+) diff --git a/example/hfp_ag_demo.c b/example/hfp_ag_demo.c index c3d1eec4f..cd1e61b0a 100644 --- a/example/hfp_ag_demo.c +++ b/example/hfp_ag_demo.c @@ -81,6 +81,7 @@ static uint8_t negotiated_codec = HFP_CODEC_CVSD; static hci_con_handle_t acl_handle = -1; static hci_con_handle_t sco_handle; static int memory_1_enabled = 1; +static btstack_packet_callback_registration_t hci_event_callback_registration; static int ag_indicators_nr = 7; static hfp_ag_indicator_t ag_indicators[] = { diff --git a/example/hfp_hf_demo.c b/example/hfp_hf_demo.c index e3777ba97..44bc24b8e 100644 --- a/example/hfp_hf_demo.c +++ b/example/hfp_hf_demo.c @@ -80,6 +80,7 @@ static hci_con_handle_t sco_handle; static uint8_t codecs[] = {HFP_CODEC_CVSD, HFP_CODEC_MSBC}; static uint16_t indicators[1] = {0x01}; static uint8_t negotiated_codec = HFP_CODEC_CVSD; +static btstack_packet_callback_registration_t hci_event_callback_registration; char cmd;