pipeline_a2dp_sink_and_hfp编译不通过

lxwxgd
Posts: 2
Joined: Mon Sep 13, 2021 12:55 pm

pipeline_a2dp_sink_and_hfp编译不通过

Postby lxwxgd » Mon Sep 13, 2021 2:22 pm

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

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: pipeline_a2dp_sink_and_hfp编译不通过

Postby ESP_HengYC » Fri Oct 15, 2021 7:18 am

你好, 这个宏开关 是用来确定 HFP 是否使用 动态内存的, 使用默认的配置即可。

Who is online

Users browsing this forum: No registered users and 7 guests