diff --git a/components/bt/common/include/bt_common.h b/components/bt/common/include/bt_common.h index a9579ec4e5..c2eff8777a 100644 --- a/components/bt/common/include/bt_common.h +++ b/components/bt/common/include/bt_common.h @@ -62,6 +62,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 4afb853e6e..5b80cada4a 100644 --- a/components/bt/host/bluedroid/common/include/common/bt_target.h +++ b/components/bt/host/bluedroid/common/include/common/bt_target.h @@ -2173,12 +2173,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