板子esp32-LyraT,idf V4.3
例程pipeline_a2dp_sink_and_hfp编译不通过,报错:
C:/esp/esp-idf/components/bt/host/bluedroid/btc/profile/std/hf_client/bta_hf_client_co.c:332:12: error: 'bta_hf_client_co_cb_ptr' undeclared (first use in this function); did you mean 'bta_hf_client_co_cb_t'?
if(bta_hf_client_co_cb_ptr == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~
文件上方有个定义开关:
#if HFP_DYNAMIC_MEMORY == FALSE
static bta_hf_client_co_cb_t bta_hf_client_co_cb;
#else
static bta_hf_client_co_cb_t *bta_hf_client_co_cb_ptr;
#define bta_hf_client_co_cb (*bta_hf_client_co_cb_ptr)
#endif
这是要把HFP_DYNAMIC_MEMORY 改成FALSE?还是别的?默认编译不通过。
同样配置例程pipeline_a2dp_sink_and_stream顺利完成。
pipeline_a2dp_sink_and_hfp编译不通过
-
- Posts: 184
- Joined: Fri Dec 15, 2017 2:45 am
Re: pipeline_a2dp_sink_and_hfp编译不通过
你好, 这个宏开关 是用来确定 HFP 是否使用 动态内存的, 使用默认的配置即可。
Who is online
Users browsing this forum: No registered users and 84 guests