From 3de3a8b354f6a8c65d2e02fdc98dabe23565a19e Mon Sep 17 00:00:00 2001 From: jincheng Date: Fri, 1 Jul 2022 14:58:12 +0800 Subject: [PATCH] fix the issue of functions not defined when enable memory debug Closes https://github.com/espressif/esp-idf/issues/9248 --- components/bt/common/include/bt_common.h | 6 ++++++ .../bt/host/bluedroid/common/include/common/bt_target.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/bt/common/include/bt_common.h b/components/bt/common/include/bt_common.h index 4fe3c6db5c..134cf33c5d 100644 --- a/components/bt/common/include/bt_common.h +++ b/components/bt/common/include/bt_common.h @@ -54,6 +54,12 @@ #define BTC_DYNAMIC_MEMORY FALSE #endif +#if UC_BT_BLUEDROID_MEM_DEBUG +#define HEAP_MEMORY_DEBUG TRUE +#else +#define HEAP_MEMORY_DEBUG FALSE +#endif + #ifndef BT_BLE_DYNAMIC_ENV_MEMORY #define BT_BLE_DYNAMIC_ENV_MEMORY FALSE #endif diff --git a/components/bt/host/bluedroid/common/include/common/bt_target.h b/components/bt/host/bluedroid/common/include/common/bt_target.h index f7cccf092d..66688ba13e 100644 --- a/components/bt/host/bluedroid/common/include/common/bt_target.h +++ b/components/bt/host/bluedroid/common/include/common/bt_target.h @@ -2252,12 +2252,6 @@ The maximum number of payload octets that the local device can receive in a sing #define BTSNOOP_MEM FALSE #endif -#if UC_BT_BLUEDROID_MEM_DEBUG -#define HEAP_MEMORY_DEBUG TRUE -#else -#define HEAP_MEMORY_DEBUG FALSE -#endif - #if UC_HEAP_ALLOCATION_FROM_SPIRAM_FIRST #define HEAP_ALLOCATION_FROM_SPIRAM_FIRST TRUE #else