pipeline_a2dp_sink_and_hfp编译不通过
Posted: 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顺利完成。
例程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顺利完成。