From dd5c93ea6bdaec808fed42d3bca7fa98907464d2 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Thu, 18 Feb 2016 17:09:16 +0100 Subject: [PATCH] hfp ag: fix emit call answered event --- include/btstack/hci_cmds.h | 2 +- src/hfp_ag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/btstack/hci_cmds.h b/include/btstack/hci_cmds.h index 18b2620c3..c8d3f91f6 100644 --- a/include/btstack/hci_cmds.h +++ b/include/btstack/hci_cmds.h @@ -752,7 +752,7 @@ extern "C" { * @format 1 * @param subevent_code */ - #define HFP_SUBEVENT_CALL_TERMINATED 0x0C +#define HFP_SUBEVENT_CALL_TERMINATED 0x0C /** * @format 1T diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 579c69349..2a174da48 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -1194,7 +1194,7 @@ static void hfp_ag_call_sm(hfp_ag_call_event_t event, hfp_connection_t * hfp_con hfp_ag_set_call_indicator(); hfp_ag_hf_accept_call(hfp_connection); printf("HF answers call, accept call by GSM\n"); - hfp_emit_event(hfp_callback, HFP_CMD_CALL_ANSWERED, 0); + hfp_emit_simple_event(hfp_callback, HFP_SUBEVENT_CALL_ANSWERED); break; default: break;