mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-29 03:32:49 +00:00
hfp: fix setup/accept of synchronous connection
This commit is contained in:
parent
654447538d
commit
d2e34ffbec
@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
- A2DP: emit A2DP_SUBEVENT_STREAM_ESTABLISHED with if connection fails, e.g. because of Page Timeout
|
||||
- A2DP: use samples as timestamp, fixes issue with Apple Airpods Pro 2nd Gen
|
||||
- AVRCP: re-register for notification
|
||||
- HFP: fix setup/accept of synchronous connection
|
||||
- PBAP Client: make pbap_set_property_selector work for Pull Phonebook
|
||||
- esp32: fix power amplifier control on Lyra T v4.3
|
||||
|
||||
|
@ -1133,6 +1133,7 @@ static int hfp_ag_run_for_audio_connection(hfp_connection_t * hfp_connection){
|
||||
if (sent) return 1;
|
||||
|
||||
if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 0;
|
||||
if (hci_can_send_command_packet_now() == false) return 0;
|
||||
if (hfp_connection->establish_audio_connection){
|
||||
hfp_connection->state = HFP_W4_SCO_CONNECTED;
|
||||
hfp_connection->establish_audio_connection = 0;
|
||||
|
@ -711,6 +711,7 @@ static int hfp_hf_run_for_audio_connection(hfp_connection_t * hfp_connection){
|
||||
if (done) return 1;
|
||||
|
||||
if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 0;
|
||||
if (hci_can_send_command_packet_now() == false) return 0;
|
||||
if (hfp_connection->establish_audio_connection){
|
||||
hfp_connection->state = HFP_W4_SCO_CONNECTED;
|
||||
hfp_connection->establish_audio_connection = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user