Skip to content

Commit

Permalink
Use the right cluster id for setting window covering delegate. (#24730)
Browse files Browse the repository at this point in the history
The existing setup would fail unless there was also a Channel cluster around
(i.e. pretty much anywhere out of all-clusters-app).
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 24, 2024
1 parent 2ba5ee0 commit 1308582
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ EmberAfStatus GetMotionLockStatus(chip::EndpointId endpoint)

void SetDefaultDelegate(EndpointId endpoint, Delegate * delegate)
{
uint16_t ep = emberAfFindClusterServerEndpointIndex(endpoint, Channel::Id);
uint16_t ep = emberAfFindClusterServerEndpointIndex(endpoint, WindowCovering::Id);

// if endpoint is found and is not a dynamic endpoint
if (ep != 0xFFFF && ep < EMBER_AF_WINDOW_COVERING_CLUSTER_SERVER_ENDPOINT_COUNT)
Expand Down

0 comments on commit 1308582

Please sign in to comment.