From 1308582f568ac7239f33396d036a15a0bea8b088 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 30 Jan 2023 14:07:36 -0500 Subject: [PATCH] Use the right cluster id for setting window covering delegate. (#24730) The existing setup would fail unless there was also a Channel cluster around (i.e. pretty much anywhere out of all-clusters-app). --- .../clusters/window-covering-server/window-covering-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/window-covering-server/window-covering-server.cpp b/src/app/clusters/window-covering-server/window-covering-server.cpp index f46f9db1278d5f..766a9539f2afe8 100644 --- a/src/app/clusters/window-covering-server/window-covering-server.cpp +++ b/src/app/clusters/window-covering-server/window-covering-server.cpp @@ -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)