diff --git a/examples/chef/common/clusters/window-covering/chef-window-covering.cpp b/examples/chef/common/clusters/window-covering/chef-window-covering.cpp index ffcd66e08601d6..c3cf3c8423abeb 100644 --- a/examples/chef/common/clusters/window-covering/chef-window-covering.cpp +++ b/examples/chef/common/clusters/window-covering/chef-window-covering.cpp @@ -29,6 +29,8 @@ using namespace chip; using namespace chip::app::Clusters; using chip::Protocols::InteractionModel::Status; +namespace ChefWindowCovering { + constexpr size_t kWindowCoveringDelegateTableSize = MATTER_DM_WINDOW_COVERING_CLUSTER_SERVER_ENDPOINT_COUNT; static_assert(kWindowCoveringDelegateTableSize <= kEmberInvalidEndpointIndex, "WindowCovering Delegate table size error"); @@ -68,6 +70,7 @@ void InitChefWindowCoveringCluster() WindowCovering::SetDefaultDelegate(endpointId, gDelegateTable[epIndex].get()); } } +} // namespace ChefWindowCovering CHIP_ERROR WindowCovering::ChefDelegate::HandleMovement(WindowCoveringType type) { diff --git a/examples/chef/common/clusters/window-covering/chef-window-covering.h b/examples/chef/common/clusters/window-covering/chef-window-covering.h index 852354bba31bdc..6c330a168d159c 100644 --- a/examples/chef/common/clusters/window-covering/chef-window-covering.h +++ b/examples/chef/common/clusters/window-covering/chef-window-covering.h @@ -65,4 +65,6 @@ class ChefDelegate : public Delegate } // namespace app } // namespace chip +namespace ChefWindowCovering { void InitChefWindowCoveringCluster(); +} // namespace ChefWindowCovering diff --git a/examples/chef/common/stubs.cpp b/examples/chef/common/stubs.cpp index e9e6cc9b57e029..663881ba65b915 100644 --- a/examples/chef/common/stubs.cpp +++ b/examples/chef/common/stubs.cpp @@ -362,7 +362,7 @@ void ApplicationInit() #ifdef MATTER_DM_PLUGIN_WINDOW_COVERING_SERVER ChipLogProgress(NotSpecified, "Initializing WindowCovering cluster delegate."); - InitChefWindowCoveringCluster(); + ChefWindowCovering::InitChefWindowCoveringCluster(); #endif // MATTER_DM_PLUGIN_WINDOW_COVERING_SERVER }