From b2ca3d2014248fbbef9ff587210e09e31953cefa Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Thu, 8 Jun 2023 19:28:50 +0800 Subject: [PATCH] fix flag of startup_color_temperature_mireds --- components/esp_matter/esp_matter_attribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_attribute.cpp b/components/esp_matter/esp_matter_attribute.cpp index e24d4ce33..984bba105 100644 --- a/components/esp_matter/esp_matter_attribute.cpp +++ b/components/esp_matter/esp_matter_attribute.cpp @@ -1064,7 +1064,7 @@ attribute_t *create_couple_color_temp_to_level_min_mireds(cluster_t *cluster, ui attribute_t *create_startup_color_temperature_mireds(cluster_t *cluster, nullable value) { return esp_matter::attribute::create(cluster, ColorControl::Attributes::StartUpColorTemperatureMireds::Id, - ATTRIBUTE_FLAG_NULLABLE | ATTRIBUTE_FLAG_WRITABLE, + ATTRIBUTE_FLAG_NULLABLE | ATTRIBUTE_FLAG_WRITABLE | ATTRIBUTE_FLAG_NONVOLATILE, esp_matter_nullable_uint16(value)); }