Skip to content

Commit 0d6ec1b

Browse files
committed
fix(matter): double declaration of ret - var scope issue
1 parent 8a66c9a commit 0d6ec1b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

libraries/Matter/src/MatterEndpoints/MatterDimmableLight.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ bool MatterDimmableLight::attributeChangeCB(uint16_t endpoint_id, uint32_t clust
3333
log_d("Dimmable Attr update callback: endpoint: %u, cluster: %u, attribute: %u, val: %u", endpoint_id, cluster_id, attribute_id, val->val.u32);
3434

3535
if (endpoint_id == getEndPointId()) {
36-
bool ret = true;
3736
switch(cluster_id) {
3837
case OnOff::Id:
3938
if (attribute_id == OnOff::Attributes::OnOff::Id) {

libraries/Matter/src/MatterEndpoints/MatterOnOffLight.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ bool MatterOnOffLight::attributeChangeCB(uint16_t endpoint_id, uint32_t cluster_
3434

3535
if (endpoint_id == getEndPointId()) {
3636
log_d("OnOffLight state changed to %d", val->val.b);
37-
bool ret = true;
3837
if (cluster_id == OnOff::Id) {
3938
if (attribute_id == OnOff::Attributes::OnOff::Id) {
4039
if (_onChangeOnOffCB != NULL) {

0 commit comments

Comments
 (0)