hfp_ag: reduce requirements for ag_send_common_codec

This commit is contained in:
Matthias Ringwald 2021-08-29 13:28:31 +02:00
parent a814da6aaf
commit d4a8cc2955

View File

@ -2229,7 +2229,7 @@ static void hfp_ag_run_for_context(hfp_connection_t *hfp_connection){
}
// trigger codec exchange (must be before hfp_ag_run_for_audio_connection)
if (!cmd_sent && (hfp_connection->command == HFP_CMD_NONE) && hfp_connection->trigger_codec_exchange){
if (hfp_connection->trigger_codec_exchange){
switch (hfp_connection->codecs_state){
case HFP_CODECS_IDLE:
case HFP_CODECS_RECEIVED_LIST: