Skip to content

Commit 52d8dc6

Browse files
authored
feat(matter): adds esp_matter:: namespace to attribute_t
1 parent 44650d7 commit 52d8dc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Matter/src/MatterEndpoints/MatterColorLight.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ bool MatterColorLight::begin(bool initialState, espHsvColor_t _colorHSV) {
194194

195195
/* Mark deferred persistence for some attributes that might be changed rapidly */
196196
cluster_t *level_control_cluster = cluster::get(endpoint, LevelControl::Id);
197-
attribute_t *current_level_attribute = attribute::get(level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
197+
esp_matter::attribute_t *current_level_attribute = attribute::get(level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
198198
attribute::set_deferred_persistence(current_level_attribute);
199199

200200
started = true;
@@ -220,7 +220,7 @@ bool MatterColorLight::setOnOff(bool newState) {
220220

221221
endpoint_t *endpoint = endpoint::get(node::get(), endpoint_id);
222222
cluster_t *cluster = cluster::get(endpoint, OnOff::Id);
223-
attribute_t *attribute = attribute::get(cluster, OnOff::Attributes::OnOff::Id);
223+
esp_matter::attribute_t *attribute = attribute::get(cluster, OnOff::Attributes::OnOff::Id);
224224

225225
esp_matter_attr_val_t val = esp_matter_invalid(NULL);
226226
attribute::get_val(attribute, &val);
@@ -271,7 +271,7 @@ bool MatterColorLight::setColorHSV(espHsvColor_t _hsvColor) {
271271
endpoint_t *endpoint = endpoint::get(node::get(), endpoint_id);
272272
cluster_t *cluster = cluster::get(endpoint, ColorControl::Id);
273273
// update hue
274-
attribute_t *attribute = attribute::get(cluster, ColorControl::Attributes::CurrentHue::Id);
274+
esp_matter::attribute_t *attribute = attribute::get(cluster, ColorControl::Attributes::CurrentHue::Id);
275275
esp_matter_attr_val_t val = esp_matter_invalid(NULL);
276276
attribute::get_val(attribute, &val);
277277
if (val.val.u8 != colorHSV.h) {

0 commit comments

Comments
 (0)