Skip to content

Commit 39897fd

Browse files
authored
feat(matter): code simplification and commentary fix
1 parent 1a7ba93 commit 39897fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Matter/src/MatterEndpoints/MatterColorLight.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endpoint_t *create(node_t *node, config_t *config, uint8_t flags, void *priv_dat
7878
add(endpoint, config);
7979
return endpoint;
8080
}
81-
} /* extended_color_light */
81+
} /* rgb_color_light */
8282
} /* endpoint */
8383
} /* esp_matter */
8484

@@ -132,7 +132,7 @@ bool MatterColorLight::attributeChangeCB(uint16_t endpoint_id, uint32_t cluster_
132132
if (attribute_id == ColorControl::Attributes::CurrentHue::Id) {
133133
log_d("RGB Light Hue changed to %d", val->val.u8);
134134
hsvColor.h = val->val.u8;
135-
} else if (attribute_id == ColorControl::Attributes::CurrentSaturation::Id) {
135+
} else { // attribute_id == ColorControl::Attributes::CurrentSaturation::Id)
136136
log_d("RGB Light Saturation changed to %d", val->val.u8);
137137
hsvColor.s = val->val.u8;
138138
}

0 commit comments

Comments
 (0)