hfp: fix answer call command

This commit is contained in:
Matthias Ringwald 2018-04-16 15:35:34 +02:00
parent 84e7d3b9ed
commit 97d2cadb38
2 changed files with 5 additions and 5 deletions

View File

@ -131,7 +131,7 @@ extern "C" {
#define HFP_EXTENDED_AUDIO_GATEWAY_ERROR "+CME ERROR"
#define HFP_TRIGGER_CODEC_CONNECTION_SETUP "+BCC"
#define HFP_CONFIRM_COMMON_CODEC "+BCS"
#define HFP_ANSWER_CALL "A"
#define HFP_ANSWER_CALL "ATA"
#define HFP_HANG_UP_CALL "+CHUP"
#define HFP_CHANGE_IN_BAND_RING_TONE_SETTING "+BSIR"
#define HFP_CALL_PHONE_NUMBER "ATD"

View File

@ -266,6 +266,10 @@ static int hfp_hf_send_dtmf(uint16_t cid, char code){
return send_str_over_rfcomm(cid, buffer);
}
static int hfp_hf_cmd_ata(uint16_t cid){
return send_str_over_rfcomm(cid, "ATA\r\n");
}
static int hfp_hf_cmd_exchange_supported_features(uint16_t cid){
return hfp_hf_send_cmd_with_int(cid, HFP_SUPPORTED_FEATURES, hfp_supported_features);
}
@ -302,10 +306,6 @@ static int hfp_hf_cmd_trigger_codec_connection_setup(uint16_t cid){
return hfp_hf_send_cmd(cid, HFP_TRIGGER_CODEC_CONNECTION_SETUP);
}
static int hfp_hf_cmd_ata(uint16_t cid){
return hfp_hf_send_cmd(cid, HFP_ANSWER_CALL);
}
static int hfp_hf_set_microphone_gain_cmd(uint16_t cid, int gain){
return hfp_hf_send_cmd_with_int(cid, HFP_SET_MICROPHONE_GAIN, gain);
}