hfp_hf: fix compile

This commit is contained in:
Matthias Ringwald 2016-04-21 15:05:23 +02:00
parent e64e0086b6
commit be2a1a7820
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}

View File

@ -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;
}