Skip to content

Commit

Permalink
all-clusters-app/esp32: add missing onoff vled side effect (#7573)
Browse files Browse the repository at this point in the history
  • Loading branch information
proppy authored and pull[bot] committed Jul 8, 2021
1 parent f6fd87c commit 3aa9dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void DeviceCallbacks::OnOnOffPostAttributeChangeCallback(EndpointId endpointId,

// At this point we can assume that value points to a bool value.
mEndpointOnOffState[endpointId - 1] = *value;
endpointId == 1 ? statusLED1.Set(*value) : statusLED2.Set(*value);

exit:
return;
Expand Down

0 comments on commit 3aa9dfa

Please sign in to comment.