From ccf5b28364913f2ff74c76b04ac488cd09cc3473 Mon Sep 17 00:00:00 2001 From: Xu Si Yu Date: Tue, 29 Oct 2024 17:52:44 +0800 Subject: [PATCH] fix(br): register a compatibility error handler for border router --- examples/common/thread_border_router/src/border_router_launch.c | 1 + 1 file changed, 1 insertion(+) 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 75a66ca..e1957ee 100644 --- a/examples/common/thread_border_router/src/border_router_launch.c +++ b/examples/common/thread_border_router/src/border_router_launch.c @@ -161,6 +161,7 @@ static void ot_task_worker(void *ctx) // Initialize the OpenThread stack esp_openthread_register_rcp_failure_handler(rcp_failure_handler); + esp_openthread_set_compatibility_error_callback(rcp_failure_handler); ESP_ERROR_CHECK(esp_openthread_init(&s_openthread_platform_config)); #if CONFIG_AUTO_UPDATE_RCP try_update_ot_rcp(&s_openthread_platform_config);