use hci_get_voice_setting

This commit is contained in:
Matthias Ringwald 2015-11-12 15:43:33 +01:00
parent 900ebd1d34
commit 8461b8c13c

View File

@ -376,7 +376,7 @@ static void hsp_run(void){
case HSP_W2_CONNECT_SCO:
if (!hci_can_send_command_packet_now()) break;
hsp_state = HSP_W4_SCO_CONNECTED;
hci_send_cmd(&hci_setup_synchronous_connection, rfcomm_handle, 8000, 8000, 0xFFFF, 0x0043, 0xFF, 0x003F);
hci_send_cmd(&hci_setup_synchronous_connection, rfcomm_handle, 8000, 8000, 0xFFFF, hci_get_sco_voice_setting(), 0xFF, 0x003F);
break;
case HSP_W2_DISCONNECT_SCO: