From 2420192b2492e9b1b0607bd0a6f90f145ed2fbe5 Mon Sep 17 00:00:00 2001 From: Douglas Rocha Ferraz Date: Fri, 17 Jun 2022 12:12:48 -0400 Subject: [PATCH] chg: eliminated references to emAfCurrentCommand from color-control-server (#19698) --- .../color-control-server/color-control-server.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/app/clusters/color-control-server/color-control-server.cpp b/src/app/clusters/color-control-server/color-control-server.cpp index f042a011de0102..acbe509b145d9c 100644 --- a/src/app/clusters/color-control-server/color-control-server.cpp +++ b/src/app/clusters/color-control-server/color-control-server.cpp @@ -1975,7 +1975,7 @@ ColorControlServer::Color16uTransitionState * ColorControlServer::getTempTransit */ EmberAfStatus ColorControlServer::moveToColorTemp(EndpointId aEndpoint, uint16_t colorTemperature, uint16_t transitionTime) { - EndpointId endpoint = emberAfCurrentEndpoint(); + EndpointId endpoint = aEndpoint; Color16uTransitionState * colorTempTransitionState = getTempTransitionState(endpoint); VerifyOrReturnError(colorTempTransitionState != nullptr, EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT); @@ -2451,12 +2451,6 @@ void ColorControlServer::levelControlColorTempChangeCommand(EndpointId endpoint) * Callbacks Implementation *********************************************************/ -void emberAfPluginColorControlServerStopTransition(void) -{ - EndpointId endpoint = emberAfCurrentEndpoint(); - ColorControlServer::Instance().stopAllColorTransitions(endpoint); -} - #ifdef EMBER_AF_PLUGIN_COLOR_CONTROL_SERVER_HSV bool emberAfColorControlClusterMoveHueCallback(app::CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath,