From 13923645b9b124e8e23a763a4416a66620db1b1b Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Fri, 3 Dec 2021 08:29:24 -0500 Subject: [PATCH] Removed level control callbacks (#12507) --- .../clusters/on-off-server/on-off-server.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/app/clusters/on-off-server/on-off-server.cpp b/src/app/clusters/on-off-server/on-off-server.cpp index 28edded4ee923c..6ebdf146ef4093 100644 --- a/src/app/clusters/on-off-server/on-off-server.cpp +++ b/src/app/clusters/on-off-server/on-off-server.cpp @@ -151,30 +151,12 @@ EmberAfStatus OnOffServer::setOnOffValue(chip::EndpointId endpoint, uint8_t comm emberAfOnOffClusterPrintln("ERR: writing on/off %x", status); return status; } - -#ifdef EMBER_AF_PLUGIN_LEVEL_CONTROL - // If initiatedByLevelChange is false, then we assume that the level change - // ZCL stuff has not happened and we do it here - if (!initiatedByLevelChange && emberAfContainsServer(endpoint, LevelControl::Id)) - { - emberAfOnOffClusterLevelControlEffectCallback(endpoint, newValue); - } -#endif // EMBER_AF_PLUGIN_LEVEL_CONTROL } else // Set Off { emberAfOnOffClusterPrintln("Off Command - OnTime : 0"); Attributes::OnTime::Set(endpoint, 0); // Reset onTime -#ifdef EMBER_AF_PLUGIN_LEVEL_CONTROL - // If initiatedByLevelChange is false, then we assume that the level change - // ZCL stuff has not happened and we do it here - if (!initiatedByLevelChange && emberAfContainsServer(endpoint, LevelControl::Id)) - { - emberAfOnOffClusterLevelControlEffectCallback(endpoint, newValue); - } -#endif // EMBER_AF_PLUGIN_LEVEL_CONTROL - // write the new on/off value status = Attributes::OnOff::Set(endpoint, newValue); if (status != EMBER_ZCL_STATUS_SUCCESS)