From 6ae2ed32c3d50b1dd7aa29fc32e6888f6d7e0d9b Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Tue, 17 Dec 2024 10:16:38 +0800 Subject: [PATCH] fix(openthread): Fix CI failure of ot_trel example build --- .../include/protocol_examples_thread_config.h | 10 ++++++++++ examples/openthread/ot_br/sdkconfig.defaults | 3 +++ examples/openthread/ot_trel/sdkconfig.defaults | 3 +++ 3 files changed, 16 insertions(+) diff --git a/examples/common_components/protocol_examples_common/include/protocol_examples_thread_config.h b/examples/common_components/protocol_examples_common/include/protocol_examples_thread_config.h index 306a9270cb..532f828b65 100644 --- a/examples/common_components/protocol_examples_common/include/protocol_examples_thread_config.h +++ b/examples/common_components/protocol_examples_common/include/protocol_examples_thread_config.h @@ -66,6 +66,11 @@ .intr_pin = CONFIG_EXAMPLE_THREAD_SPI_INTR_PIN, \ }, \ } +#else +#define ESP_OPENTHREAD_DEFAULT_RADIO_CONFIG() \ + { \ + .radio_mode = RADIO_MODE_TREL, \ + } #endif #if CONFIG_OPENTHREAD_CONSOLE_TYPE_UART @@ -95,6 +100,11 @@ .host_connection_mode = HOST_CONNECTION_MODE_CLI_USB, \ .host_usb_config = USB_SERIAL_JTAG_DRIVER_CONFIG_DEFAULT(), \ } +#else +#define ESP_OPENTHREAD_DEFAULT_HOST_CONFIG() \ + { \ + .host_connection_mode = HOST_CONNECTION_MODE_NONE, \ + } #endif #define ESP_OPENTHREAD_DEFAULT_PORT_CONFIG() \ diff --git a/examples/openthread/ot_br/sdkconfig.defaults b/examples/openthread/ot_br/sdkconfig.defaults index 619ab0f7e7..2b17031c2b 100644 --- a/examples/openthread/ot_br/sdkconfig.defaults +++ b/examples/openthread/ot_br/sdkconfig.defaults @@ -47,6 +47,9 @@ CONFIG_LWIP_IPV6_AUTOCONFIG=y CONFIG_MDNS_MULTIPLE_INSTANCE=y # end of mDNS +# Example connect +CONFIG_EXAMPLE_CONNECT_THREAD=n + # # ESP System Settings # diff --git a/examples/openthread/ot_trel/sdkconfig.defaults b/examples/openthread/ot_trel/sdkconfig.defaults index 99f65081b9..07de5fdbf9 100644 --- a/examples/openthread/ot_trel/sdkconfig.defaults +++ b/examples/openthread/ot_trel/sdkconfig.defaults @@ -41,3 +41,6 @@ CONFIG_LWIP_IPV6_AUTOCONFIG=y # Configurations for optimizing the size of firmware # CONFIG_COMPILER_OPTIMIZATION_SIZE=y + +# Example connect +CONFIG_EXAMPLE_CONNECT_THREAD=n