hfp: allow to use ag and hf at the same time (fix)

This commit is contained in:
Matthias Ringwald 2018-04-08 22:08:00 +02:00
parent ca59be5193
commit 671f1aa2bc

View File

@ -214,8 +214,10 @@ static void hfp_emit_event_for_context(hfp_connection_t * hfp_connection, uint8_
switch (hfp_connection->local_role){
case HFP_ROLE_HF:
callback = hfp_hf_callback;
break;
case HFP_ROLE_AG:
callback = hfp_ag_callback;
break;
default:
return;
}