From e37dcaa92ffba4ee0af1e1858ae5ff4861b51dce Mon Sep 17 00:00:00 2001 From: zhanghaipeng Date: Tue, 5 Dec 2023 20:30:22 +0800 Subject: [PATCH] fix(bt/bluedroid): Fix BLE malloc internal wrapper fail --- components/bt/controller/esp32c3/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/controller/esp32c3/bt.c b/components/bt/controller/esp32c3/bt.c index eb7fd1b10b..97ea53ca37 100644 --- a/components/bt/controller/esp32c3/bt.c +++ b/components/bt/controller/esp32c3/bt.c @@ -681,7 +681,7 @@ static bool IRAM_ATTR is_in_isr_wrapper(void) static void *malloc_internal_wrapper(size_t size) { - void *p = heap_caps_malloc(size, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL|MALLOC_CAP_DMA); + void *p = heap_caps_malloc(size, MALLOC_CAP_INTERNAL|MALLOC_CAP_DMA); if(p == NULL) { ESP_LOGE(BT_LOG_TAG, "Malloc failed"); }