hfp_hf: emit HFP_SUBEVENT_TRANSMIT_DTMF_CODES after sending DTMF command

This commit is contained in:
Matthias Ringwald 2022-03-21 22:29:56 +01:00
parent 2f50bc44f0
commit c090e55228
2 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- GAP: support periodic advertising with ENABLE_LE_PERIODIC_ADVERTISING
- HFP HF: provide Calling Line Identification alpha field
- HFP HF: emit HFP_SUBEVENT_TRANSMIT_DTMF_CODES after sending DTMF command
### Fixed
- HFP AG: activate all AG indicators upon service level connection establishment

View File

@ -968,6 +968,11 @@ static void hfp_hf_run_for_context(hfp_connection_t * hfp_connection){
hfp_connection->hf_send_dtmf_code = 0;
hfp_connection->ok_pending = 1;
hfp_hf_send_dtmf(hfp_connection->rfcomm_cid, code);
// notify client that dtmf was sent
char buffer[2];
buffer[0] = code;
buffer[1] = 0;
hfp_emit_string_event(hfp_connection, HFP_SUBEVENT_TRANSMIT_DTMF_CODES, buffer);
return;
}