mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
feat(bt/bluedroid): Add flag to control whether to send AT+CLIP cmd for BQB test
This commit is contained in:
committed by
gongyantao
parent
8098e3a9ce
commit
928ece17c1
@ -25,6 +25,10 @@
|
|||||||
#include "bta/bta_hf_client_api.h"
|
#include "bta/bta_hf_client_api.h"
|
||||||
#include "bta_hf_client_int.h"
|
#include "bta_hf_client_int.h"
|
||||||
|
|
||||||
|
#if BT_HF_CLIENT_BQB_INCLUDED
|
||||||
|
static BOOLEAN s_bta_hf_client_bqb_clip_flag = TRUE;
|
||||||
|
#endif /* BT_HF_CLIENT_BQB_INCLUDED */
|
||||||
|
|
||||||
#if (BTA_HF_INCLUDED == TRUE)
|
#if (BTA_HF_INCLUDED == TRUE)
|
||||||
/* uncomment to enable extra debug */
|
/* uncomment to enable extra debug */
|
||||||
/* #define BTA_HF_CLIENT_DEBUG TRUE */
|
/* #define BTA_HF_CLIENT_DEBUG TRUE */
|
||||||
@ -247,6 +251,21 @@ tBTA_HF_CLIENT_CB bta_hf_client_cb;
|
|||||||
tBTA_HF_CLIENT_CB *bta_hf_client_cb_ptr;
|
tBTA_HF_CLIENT_CB *bta_hf_client_cb_ptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
**
|
||||||
|
** Function bta_hf_client_bqb_clip_ctrl
|
||||||
|
**
|
||||||
|
** Description Control if send the command AT+CLIP for BQB test
|
||||||
|
**
|
||||||
|
** Returns void
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
#if BT_HF_CLIENT_BQB_INCLUDED
|
||||||
|
void bta_hf_client_bqb_clip_ctrl(BOOLEAN enable)
|
||||||
|
{
|
||||||
|
s_bta_hf_client_bqb_clip_flag = enable;
|
||||||
|
}
|
||||||
|
#endif /* BT_HF_CLIENT_BQB_INCLUDED */
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
@ -538,7 +557,14 @@ static void send_post_slc_cmd(void)
|
|||||||
bta_hf_client_send_at_cmee(TRUE);
|
bta_hf_client_send_at_cmee(TRUE);
|
||||||
bta_hf_client_send_at_cops(FALSE);
|
bta_hf_client_send_at_cops(FALSE);
|
||||||
bta_hf_client_send_at_btrh(TRUE, 0);
|
bta_hf_client_send_at_btrh(TRUE, 0);
|
||||||
|
|
||||||
|
#if BT_HF_CLIENT_BQB_INCLUDED
|
||||||
|
if (s_bta_hf_client_bqb_clip_flag == TRUE) {
|
||||||
|
bta_hf_client_send_at_clip(TRUE);
|
||||||
|
}
|
||||||
|
#else
|
||||||
bta_hf_client_send_at_clip(TRUE);
|
bta_hf_client_send_at_clip(TRUE);
|
||||||
|
#endif /* BT_HF_CLIENT_BQB_INCLUDED */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
Reference in New Issue
Block a user