Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminated references to emAfCurrentCommand from color-control-server #19698

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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