From 91d55669dcc61e2d77587af7cc45052957ae8c8c Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Wed, 19 Jan 2022 17:29:36 +0800 Subject: [PATCH] Bugfix: Fix attribute reading error --- components/esp_matter/esp_matter_core.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_core.cpp b/components/esp_matter/esp_matter_core.cpp index 60d299a6e..44e250f12 100644 --- a/components/esp_matter/esp_matter_core.cpp +++ b/components/esp_matter/esp_matter_core.cpp @@ -189,6 +189,9 @@ static void esp_matter_chip_init_task(intptr_t context) #if CHIP_DEVICE_CONFIG_ENABLE_THREAD chip::app::DnssdServer::Instance().StartServer(); #endif + if (esp_matter_endpoint_enable_all() != ESP_OK) { + ESP_LOGE(TAG, "Enable all endpoints failure"); + } xTaskNotifyGive(task_to_notify); } @@ -234,7 +237,6 @@ esp_err_t esp_matter_start(esp_matter_event_callback_t callback) ESP_LOGE(TAG, "Error initializing matter"); } - err = esp_matter_endpoint_enable_all(); return err; }