Skip to content

Commit 1aa0637

Browse files
committed
test error resolved
1 parent d06bbaa commit 1aa0637

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/clusters/color-control-server/color-control-server.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ void ColorControlServer::handleModeSwitch(EndpointId endpoint, EnhancedColorMode
589589

590590
uint8_t colorModeTransition;
591591

592-
if (static_cast<EnhancedColorModeEnum>(oldColorMode) == newColorMode)
592+
if (oldColorMode == static_cast<ColorModeEnum>(newColorMode))
593593
{
594594
return;
595595
}
@@ -627,7 +627,7 @@ void ColorControlServer::handleModeSwitch(EndpointId endpoint, EnhancedColorMode
627627
computePwmFromTemp(endpoint);
628628
break;
629629

630-
// for the following cases, there is no transition.
630+
// No transition needed for the following cases
631631
case ColorControlServer::Conversion::HSV_TO_HSV:
632632
case ColorControlServer::Conversion::CIE_XY_TO_CIE_XY:
633633
case ColorControlServer::Conversion::TEMPERATURE_TO_TEMPERATURE:
@@ -636,6 +636,7 @@ void ColorControlServer::handleModeSwitch(EndpointId endpoint, EnhancedColorMode
636636
}
637637
}
638638

639+
639640
/**
640641
* @brief calculates transition time frame currant sate and rate
641642
*

0 commit comments

Comments
 (0)