From 4c29f272d74ce16a2872f8827a8aba1b92c54068 Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Fri, 23 Jan 2026 17:59:25 +0800 Subject: [PATCH] esp-matter: fix python certificate testing failure(v1.4.2) --- components/esp_matter/data_model/esp_matter_endpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/data_model/esp_matter_endpoint.cpp b/components/esp_matter/data_model/esp_matter_endpoint.cpp index 707d9fd87..317405699 100644 --- a/components/esp_matter/data_model/esp_matter_endpoint.cpp +++ b/components/esp_matter/data_model/esp_matter_endpoint.cpp @@ -91,7 +91,7 @@ esp_err_t add(endpoint_t *endpoint, config_t *config) #if defined(CONFIG_SUPPORT_WIFI_NETWORK_DIAGNOSTICS_CLUSTER) wifi_network_diagnostics::create(endpoint, nullptr, CLUSTER_FLAG_SERVER); #endif -#if defined(CONFIG_SUPPORT_THREAD_NETWORK_DIAGNOSTICS_CLUSTER) +#if defined(CONFIG_SUPPORT_THREAD_NETWORK_DIAGNOSTICS_CLUSTER) && defined(CONFIG_OPENTHREAD_ENABLED) thread_network_diagnostics::create(endpoint, nullptr, CLUSTER_FLAG_SERVER); #endif return ESP_OK;