From 2e93882bcfbbeccb0a8ad4ddffb79f75ab7bc271 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Tue, 3 Oct 2023 16:58:43 -0300 Subject: [PATCH] esp32/ble: Fix task_create_wrapper CPU core ID passed as argument The registered `task_create_wrapper` receives the `core_id`, but the current implementation ignores this parameter while calling `esp_task_create_pinned_to_core`. This commit fix this. --- arch/xtensa/src/esp32/esp32_ble_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/esp32_ble_adapter.c b/arch/xtensa/src/esp32/esp32_ble_adapter.c index 032b959984..334b9a263d 100644 --- a/arch/xtensa/src/esp32/esp32_ble_adapter.c +++ b/arch/xtensa/src/esp32/esp32_ble_adapter.c @@ -1565,7 +1565,7 @@ static int task_create_wrapper(void *task_func, const char *name, { return esp_task_create_pinned_to_core(task_func, name, stack_depth, param, - prio, task_handle, UINT32_MAX); + prio, task_handle, core_id); } /****************************************************************************