Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and Thirsrin committed Jul 24, 2024
1 parent cbc356d commit c3ebe54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ class DefaultColorControlSceneHandler : public scenes::DefaultSceneHandlerImpl
if (decodePair.valueUnsigned8.Value() <=
static_cast<uint8_t>(ColorControl::EnhancedColorMode::kEnhancedCurrentHueAndCurrentSaturation))
{
targetColorMode = static_cast<chip::app::Clusters::ColorControl::EnhancedColorModeEnum>(decodePair.valueUnsigned8.Value());
targetColorMode =
static_cast<chip::app::Clusters::ColorControl::EnhancedColorModeEnum>(decodePair.valueUnsigned8.Value());
}
break;
default:
Expand Down Expand Up @@ -581,7 +582,7 @@ void ColorControlServer::handleModeSwitch(EndpointId endpoint, uint8_t newColorM

uint8_t colorModeTransition;

ColorControl::ColorMode newColorModeEnum = static_cast<ColorControl::ColorMode>(newColorMode);
ColorControl::ColorMode newColorModeEnum = static_cast<ColorControl::ColorMode>(newColorMode);
ColorControl::EnhancedColorMode newEnhanceColorModeEnum = static_cast<ColorControl::EnhancedColorMode>(newColorMode);
if (oldColorMode == newColorModeEnum)
{
Expand Down
3 changes: 1 addition & 2 deletions src/app/clusters/color-control-server/color-control-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ class ColorControlServer
bool moveToHueCommand(chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, uint16_t hue,
HueDirection moveDirection, uint16_t transitionTime,
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsMask,
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsOverride,
bool isEnhanced);
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsOverride, bool isEnhanced);
bool moveToHueAndSaturationCommand(chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath,
uint16_t hue, uint8_t saturation, uint16_t transitionTime,
chip::BitMask<chip::app::Clusters::ColorControl::OptionsBitmap> optionsMask,
Expand Down

0 comments on commit c3ebe54

Please sign in to comment.