@@ -122,11 +122,11 @@ bool MatterColorTemperatureLight::begin(bool initialState, uint8_t brightness, u
122
122
123
123
/* Mark deferred persistence for some attributes that might be changed rapidly */
124
124
cluster_t *level_control_cluster = cluster::get (endpoint, LevelControl::Id);
125
- attribute_t *current_level_attribute = attribute::get (level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
125
+ esp_matter:: attribute_t *current_level_attribute = attribute::get (level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
126
126
attribute::set_deferred_persistence (current_level_attribute);
127
127
128
128
cluster_t *color_control_cluster = cluster::get (endpoint, ColorControl::Id);
129
- attribute_t *color_temp_attribute = attribute::get (color_control_cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
129
+ esp_matter:: attribute_t *color_temp_attribute = attribute::get (color_control_cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
130
130
attribute::set_deferred_persistence (color_temp_attribute);
131
131
132
132
started = true ;
@@ -152,7 +152,7 @@ bool MatterColorTemperatureLight::setOnOff(bool newState) {
152
152
153
153
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
154
154
cluster_t *cluster = cluster::get (endpoint, OnOff::Id);
155
- attribute_t *attribute = attribute::get (cluster, OnOff::Attributes::OnOff::Id);
155
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, OnOff::Attributes::OnOff::Id);
156
156
157
157
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
158
158
attribute::get_val (attribute, &val);
@@ -193,7 +193,7 @@ bool MatterColorTemperatureLight::setBrightness(uint8_t newBrightness) {
193
193
194
194
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
195
195
cluster_t *cluster = cluster::get (endpoint, LevelControl::Id);
196
- attribute_t *attribute = attribute::get (cluster, LevelControl::Attributes::CurrentLevel::Id);
196
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, LevelControl::Attributes::CurrentLevel::Id);
197
197
198
198
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
199
199
attribute::get_val (attribute, &val);
@@ -224,7 +224,7 @@ bool MatterColorTemperatureLight::setColorTemperature(uint16_t newTemperature) {
224
224
225
225
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
226
226
cluster_t *cluster = cluster::get (endpoint, ColorControl::Id);
227
- attribute_t *attribute = attribute::get (cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
227
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
228
228
229
229
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
230
230
attribute::get_val (attribute, &val);
0 commit comments