From 8107dce5cde4d306b46a23766e749c65617356ff Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Thu, 2 Dec 2021 16:39:13 -0500 Subject: [PATCH] Removed level control callbacks --- .../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)