From c6665110eaa626fc043b5a0a9811772e38d17d64 Mon Sep 17 00:00:00 2001 From: zwx Date: Mon, 12 Aug 2024 15:55:27 +0800 Subject: [PATCH] feat(br): enlarge the task size of ot task --- .../common/thread_border_router/src/border_router_launch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/common/thread_border_router/src/border_router_launch.c b/examples/common/thread_border_router/src/border_router_launch.c index b864219..78c5a9a 100644 --- a/examples/common/thread_border_router/src/border_router_launch.c +++ b/examples/common/thread_border_router/src/border_router_launch.c @@ -113,8 +113,8 @@ static void ot_br_init(void *ctx) otOperationalDatasetTlvs dataset; otError error = otDatasetGetActiveTlvs(esp_openthread_get_instance(), &dataset); ESP_ERROR_CHECK(esp_openthread_auto_start((error == OT_ERROR_NONE) ? &dataset : NULL)); -#endif // CONFIG_OPENTHREAD_BR_AUTO_START esp_openthread_lock_release(); +#endif // CONFIG_OPENTHREAD_BR_AUTO_START vTaskDelete(NULL); } @@ -161,5 +161,5 @@ void launch_openthread_border_router(const esp_openthread_platform_config_t *pla s_openthread_platform_config = *platform_config; ESP_ERROR_CHECK(esp_rcp_update_init(update_config)); - xTaskCreate(ot_task_worker, "ot_br_main", 6144, xTaskGetCurrentTaskHandle(), 5, NULL); + xTaskCreate(ot_task_worker, "ot_br_main", 8192, xTaskGetCurrentTaskHandle(), 5, NULL); }