hfp_ag: emit service level established after answering AT+BIND?, fixes issue #506

This commit is contained in:
Matthias Ringwald 2023-07-20 13:00:06 +02:00
parent dde2e0f082
commit a7666b0251
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- HCI: fix remove le device from whitelist
- HFP: use 'don't care' to accept SCO connections, fixes issue on ESP32
- HFP: fix LC3-WB init
- HFP AG: fix setup of audio connection in service level established event
### Changed
- btstack_crypto: allow MBEDTLS config via MBEDTLS_CONFIG_FILE

View File

@ -765,8 +765,8 @@ static int hfp_ag_run_for_context_service_level_connection(hfp_connection_t * hf
case HFP_CMD_RETRIEVE_GENERIC_STATUS_INDICATORS_STATE:
if (hfp_connection->state != HFP_W4_RETRIEVE_INITITAL_STATE_GENERIC_STATUS_INDICATORS) break;
hfp_ag_slc_established(hfp_connection);
hfp_ag_send_retrieve_initital_supported_generic_status_indicators_cmd(hfp_connection->rfcomm_cid);
hfp_ag_slc_established(hfp_connection);
return 1;
default:
break;