乐鑫技术交流
直播中

李桂兰

7年用户 1426经验值
私信 关注
[问答]

pipeline_a2dp_sink_and_hfp编译不通过的原因?怎么解决?

板子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顺利完成。

更多回帖

发帖
×
20
完善资料,
赚取积分