mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
hsp_ag: fix outgoing sdp query
This commit is contained in:
parent
1c2a5bcac3
commit
ad1322ab5f
@ -378,13 +378,16 @@ void hsp_ag_stop_ringing(void){
|
||||
}
|
||||
|
||||
static void hsp_run(void){
|
||||
|
||||
int err;
|
||||
|
||||
if (rfcomm_cid) {
|
||||
|
||||
if (!rfcomm_can_send_packet_now(rfcomm_cid)) {
|
||||
rfcomm_request_can_send_now_event(rfcomm_cid);
|
||||
return;
|
||||
}
|
||||
|
||||
int err;
|
||||
|
||||
if (ag_send_ok){
|
||||
ag_send_ok = 0;
|
||||
err = hsp_ag_send_str_over_rfcomm(rfcomm_cid, HSP_AG_OK);
|
||||
@ -402,6 +405,7 @@ static void hsp_run(void){
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (hsp_establish_audio_connection){
|
||||
hsp_establish_audio_connection = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user