From be2a1a7820bb7414837afc4e2a0c4560931d910f Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 21 Apr 2016 15:05:23 +0200 Subject: [PATCH] hfp_hf: fix compile --- src/classic/hfp.c | 2 +- src/classic/hfp_hf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classic/hfp.c b/src/classic/hfp.c index 9fb02881c..0a51433c2 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -533,7 +533,7 @@ void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet case HCI_EVENT_COMMAND_STATUS: if (hci_event_command_status_get_command_opcode(packet) == hci_setup_synchronous_connection.opcode) { - uint8_t status = hci_event_command_status_get_status(packet); + status = hci_event_command_status_get_status(packet); if (status) { hfp_handle_failed_sco_connection(hci_event_command_status_get_status(packet)); } diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 7586bffca..2aca9eb4b 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -566,7 +566,7 @@ static int hfp_hf_run_for_audio_connection(hfp_connection_t * hfp_connection){ if (hfp_connection->establish_audio_connection){ hfp_connection->state = HFP_W4_SCO_CONNECTED; hfp_connection->establish_audio_connection = 0; - hfp_setup_synchronous_connection(hfp_connection->acl_handle, hfp_connection->link_setting); + hfp_setup_synchronous_connection(hfp_connection); return 1; }