From 84657b9d74fd2ff0dac56d6efb4ce1c2fec39c62 Mon Sep 17 00:00:00 2001 From: chenjianhua Date: Thu, 18 Jul 2024 14:10:33 +0800 Subject: [PATCH] fix(bt/controller): Change level of BLE interrupt to avoid allocation failure --- 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 e393452578..526167bdce 100644 --- a/components/bt/controller/esp32c3/bt.c +++ b/components/bt/controller/esp32c3/bt.c @@ -495,7 +495,7 @@ static int interrupt_alloc_wrapper(int cpu_id, int source, intr_handler_t handle { btdm_isr_alloc_t p; p.source = source; - p.flags = ESP_INTR_FLAG_LEVEL1 | ESP_INTR_FLAG_IRAM; + p.flags = ESP_INTR_FLAG_LOWMED | ESP_INTR_FLAG_IRAM; p.fn = handler; p.arg = arg; p.handle = (intr_handle_t *)ret_handle;