From 8e5bc8913cf14134c910d0c5562e75dd6effc39b Mon Sep 17 00:00:00 2001 From: Nadim El Boustani <1506149+bnadim@users.noreply.github.com> Date: Mon, 6 Jan 2025 03:42:25 +0100 Subject: [PATCH] components/esp-matter: added features support to power source device endpoint --- components/esp_matter/esp_matter_endpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_endpoint.cpp b/components/esp_matter/esp_matter_endpoint.cpp index 612d1b870..d91b3ae10 100644 --- a/components/esp_matter/esp_matter_endpoint.cpp +++ b/components/esp_matter/esp_matter_endpoint.cpp @@ -212,7 +212,7 @@ esp_err_t add(endpoint_t *endpoint, config_t *config) return err; } - cluster_t *cluster = power_source::create(endpoint, &(config->power_source), CLUSTER_FLAG_SERVER, ESP_MATTER_NONE_FEATURE_ID); + cluster_t *cluster = power_source::create(endpoint, &(config->power_source), CLUSTER_FLAG_SERVER, config->descriptor.features); if (!cluster) { return ESP_ERR_INVALID_STATE; }