Skip to content

Commit

Permalink
Update examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
woody-apple and bzbarsky-apple authored Jan 27, 2022
1 parent 74079f3 commit a8dbbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void DeviceCallbacks::OnIdentifyPostAttributeChangeCallback(EndpointId endpointI
else
{
bool onOffState;
endpointId == 0 ? onOffState = mEndpointOnOffState[0] : onOffState = mEndpointOnOffState[endpointId - 1];
bool onOffState = mEndpointOnOffState[endpointId == 0 ? 0 : endpointId - 1];
endpointId == 2 ? statusLED2.Set(onOffState) : statusLED1.Set(onOffState);
}
}
Expand Down

0 comments on commit a8dbbbd

Please sign in to comment.