hfp ag: fix emit call answered event

This commit is contained in:
Milanka Ringwald 2016-02-18 17:09:16 +01:00
parent 352dca4473
commit dd5c93ea6b
2 changed files with 2 additions and 2 deletions

View File

@ -752,7 +752,7 @@ extern "C" {
* @format 1 * @format 1
* @param subevent_code * @param subevent_code
*/ */
#define HFP_SUBEVENT_CALL_TERMINATED 0x0C #define HFP_SUBEVENT_CALL_TERMINATED 0x0C
/** /**
* @format 1T * @format 1T

View File

@ -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_set_call_indicator();
hfp_ag_hf_accept_call(hfp_connection); hfp_ag_hf_accept_call(hfp_connection);
printf("HF answers call, accept call by GSM\n"); 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; break;
default: default:
break; break;