Skip to content

Commit

Permalink
chg: eliminated references to emAfCurrentCommand from color-control-s…
Browse files Browse the repository at this point in the history
…erver (#19698)
  • Loading branch information
rochaferraz authored and pull[bot] committed Nov 18, 2023
1 parent 584e56f commit 2420192
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2420192

Please sign in to comment.