File tree 1 file changed +18
-0
lines changed
src/app/clusters/color-control-server
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2565,6 +2565,24 @@ void ColorControlServer::updateTempCommand(EndpointId endpoint)
2565
2565
2566
2566
isColorTempTransitionDone = computeNewColor16uValue (colorTempTransitionState);
2567
2567
2568
+ if (!isColorTempTransitionDone)
2569
+ {
2570
+ // Check whether our color temperature has actually changed. If not, do
2571
+ // nothing, and wait for it to change.
2572
+ uint16_t currentColorTemp;
2573
+ if (Attributes::ColorTemperatureMireds::Get (endpoint, ¤tColorTemp) != EMBER_ZCL_STATUS_SUCCESS)
2574
+ {
2575
+ // Why can't we read our attribute?
2576
+ return ;
2577
+ }
2578
+
2579
+ if (currentColorTemp == colorTempTransitionState->currentValue )
2580
+ {
2581
+ scheduleTimerCallbackMs (configureTempEventControl (endpoint), TRANSITION_UPDATE_TIME_MS.count ());
2582
+ return ;
2583
+ }
2584
+ }
2585
+
2568
2586
Attributes::RemainingTime::Set (endpoint, colorTempTransitionState->timeRemaining );
2569
2587
2570
2588
if (isColorTempTransitionDone)
You can’t perform that action at this time.
0 commit comments