Skip to content

Commit 14159e3

Browse files
authored
feat(matter): adds esp_matter:: namespace to attribute_t
1 parent e8efb1f commit 14159e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/Matter/src/MatterEndpoints/MatterEnhancedColorLight.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ bool MatterEnhancedColorLight::begin(bool initialState, espHsvColor_t _colorHSV,
214214

215215
/* Mark deferred persistence for some attributes that might be changed rapidly */
216216
cluster_t *level_control_cluster = cluster::get(endpoint, LevelControl::Id);
217-
attribute_t *current_level_attribute = attribute::get(level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
217+
esp_matter::attribute_t *current_level_attribute = attribute::get(level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
218218
attribute::set_deferred_persistence(current_level_attribute);
219219

220220
started = true;
@@ -240,7 +240,7 @@ bool MatterEnhancedColorLight::setOnOff(bool newState) {
240240

241241
endpoint_t *endpoint = endpoint::get(node::get(), endpoint_id);
242242
cluster_t *cluster = cluster::get(endpoint, OnOff::Id);
243-
attribute_t *attribute = attribute::get(cluster, OnOff::Attributes::OnOff::Id);
243+
esp_matter::attribute_t *attribute = attribute::get(cluster, OnOff::Attributes::OnOff::Id);
244244

245245
esp_matter_attr_val_t val = esp_matter_invalid(NULL);
246246
attribute::get_val(attribute, &val);
@@ -281,7 +281,7 @@ bool MatterEnhancedColorLight::setBrightness(uint8_t newBrightness) {
281281

282282
endpoint_t *endpoint = endpoint::get(node::get(), endpoint_id);
283283
cluster_t *cluster = cluster::get(endpoint, LevelControl::Id);
284-
attribute_t *attribute = attribute::get(cluster, LevelControl::Attributes::CurrentLevel::Id);
284+
esp_matter::attribute_t *attribute = attribute::get(cluster, LevelControl::Attributes::CurrentLevel::Id);
285285

286286
esp_matter_attr_val_t val = esp_matter_invalid(NULL);
287287
attribute::get_val(attribute, &val);
@@ -312,7 +312,7 @@ bool MatterEnhancedColorLight::setColorTemperature(uint16_t newTemperature) {
312312

313313
endpoint_t *endpoint = endpoint::get(node::get(), endpoint_id);
314314
cluster_t *cluster = cluster::get(endpoint, ColorControl::Id);
315-
attribute_t *attribute = attribute::get(cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
315+
esp_matter::attribute_t *attribute = attribute::get(cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
316316

317317
esp_matter_attr_val_t val = esp_matter_invalid(NULL);
318318
attribute::get_val(attribute, &val);
@@ -353,7 +353,7 @@ bool MatterEnhancedColorLight::setColorHSV(espHsvColor_t _hsvColor) {
353353
endpoint_t *endpoint = endpoint::get(node::get(), endpoint_id);
354354
cluster_t *cluster = cluster::get(endpoint, ColorControl::Id);
355355
// update hue
356-
attribute_t *attribute = attribute::get(cluster, ColorControl::Attributes::CurrentHue::Id);
356+
esp_matter::attribute_t *attribute = attribute::get(cluster, ColorControl::Attributes::CurrentHue::Id);
357357
esp_matter_attr_val_t val = esp_matter_invalid(NULL);
358358
attribute::get_val(attribute, &val);
359359
if (val.val.u8 != colorHSV.h) {

0 commit comments

Comments
 (0)