From 2428480fb7dd4b47a8d434a233446c075d830068 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Mon, 3 Apr 2023 18:10:32 -0400 Subject: [PATCH] fix conditional (#25950) --- src/app/clusters/color-control-server/color-control-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6a3d70e62648a7..6247cd3c03770d 100644 --- a/src/app/clusters/color-control-server/color-control-server.cpp +++ b/src/app/clusters/color-control-server/color-control-server.cpp @@ -1528,7 +1528,7 @@ bool ColorControlServer::colorLoopCommand(app::CommandHandler * commandObj, cons deactiveColorLoop = updateFlags.Has(ColorLoopUpdateFlags::kUpdateAction) && (action == ColorLoopAction::kDeactivate); - if (updateFlags.Has(ColorLoopUpdateFlags::kUpdateAction)) + if (updateFlags.Has(ColorLoopUpdateFlags::kUpdateDirection)) { Attributes::ColorLoopDirection::Set(endpoint, to_underlying(direction));