Skip to content

Commit

Permalink
Restyled by whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and s07641069 committed Jan 19, 2023
1 parent d1a6c22 commit acca2e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/lighting-app/telink/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,15 +627,15 @@ void AppTask::SetInitiateAction(PWMDevice::Action_t aAction, int32_t aActor, uin
RgbColor_t rgb;
#endif

if (aAction == PWMDevice::ON_ACTION || aAction == PWMDevice::OFF_ACTION)
if (aAction == PWMDevice::ON_ACTION || aAction == PWMDevice::OFF_ACTION)
{
sAppTask.mBluePwmLed.InitiateAction(aAction, aActor, value);
#if USE_RGB_PWM
sAppTask.mRedPwmLed.InitiateAction(aAction, aActor, value);
sAppTask.mGreenPwmLed.InitiateAction(aAction, aActor, value);
#endif
}
else if (aAction == PWMDevice::LEVEL_ACTION)
else if (aAction == PWMDevice::LEVEL_ACTION)
{
#if USE_RGB_PWM
// Save a new brightness for ColorControl
Expand Down Expand Up @@ -663,7 +663,7 @@ void AppTask::SetInitiateAction(PWMDevice::Action_t aAction, int32_t aActor, uin
sAppTask.mBluePwmLed.InitiateAction(aAction, aActor, value);
#endif
}

#if USE_RGB_PWM
else if (aAction == PWMDevice::COLOR_ACTION_XY)
{
Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/telink/src/ZclCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
}

ChipLogProgress(Zcl, "New XY color: %u|%u", xy.x, xy.y);
GetAppTask().SetInitiateAction(PWMDevice::COLOR_ACTION_XY,
GetAppTask().SetInitiateAction(PWMDevice::COLOR_ACTION_XY,
static_cast<int32_t>(AppEvent::kEventType_Lighting), (uint8_t *) &xy);
}
/* HSV color space */
Expand All @@ -101,7 +101,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
hsv.s = *value;
}
ChipLogProgress(Zcl, "New HSV color: hue = %u| saturation = %u", hsv.h, hsv.s);
GetAppTask().SetInitiateAction(PWMDevice::COLOR_ACTION_HSV,
GetAppTask().SetInitiateAction(PWMDevice::COLOR_ACTION_HSV,
static_cast<int32_t>(AppEvent::kEventType_Lighting), (uint8_t *) &hsv);
}
/* Temperature Mireds color space */
Expand Down

0 comments on commit acca2e0

Please sign in to comment.