mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
hfp: fix answer call command
This commit is contained in:
parent
84e7d3b9ed
commit
97d2cadb38
@ -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"
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user