Skip to content

Commit 7791619

Browse files
restyled-commitsThirsrin
authored andcommitted
Restyled by clang-format
1 parent bd31271 commit 7791619

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ class DefaultColorControlSceneHandler : public scenes::DefaultSceneHandlerImpl
266266
if (decodePair.valueUnsigned8.Value() <=
267267
static_cast<uint8_t>(ColorControl::EnhancedColorMode::kEnhancedCurrentHueAndCurrentSaturation))
268268
{
269-
targetColorMode = static_cast<chip::app::Clusters::ColorControl::EnhancedColorModeEnum>(decodePair.valueUnsigned8.Value());
269+
targetColorMode =
270+
static_cast<chip::app::Clusters::ColorControl::EnhancedColorModeEnum>(decodePair.valueUnsigned8.Value());
270271
}
271272
break;
272273
default:
@@ -569,7 +570,7 @@ void ColorControlServer::handleModeSwitch(EndpointId endpoint, uint8_t newColorM
569570

570571
uint8_t colorModeTransition;
571572

572-
ColorControl::ColorMode newColorModeEnum = static_cast<ColorControl::ColorMode>(newColorMode);
573+
ColorControl::ColorMode newColorModeEnum = static_cast<ColorControl::ColorMode>(newColorMode);
573574
ColorControl::EnhancedColorMode newEnhanceColorModeEnum = static_cast<ColorControl::EnhancedColorMode>(newColorMode);
574575
if (oldColorMode == newColorModeEnum)
575576
{

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ class ColorControlServer
147147
bool moveToHueCommand(chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, uint16_t hue,
148148
HueDirection moveDirection, uint16_t transitionTime,
149149
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsMask,
150-
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsOverride,
151-
bool isEnhanced);
150+
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsOverride, bool isEnhanced);
152151
bool moveToHueAndSaturationCommand(chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath,
153152
uint16_t hue, uint8_t saturation, uint16_t transitionTime,
154153
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsMask,

0 commit comments

Comments
 (0)