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 committed Oct 29, 2021
1 parent 1cdf00b commit 9a5d38f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/lighting-app/nxp/k32w/k32w0/main/LightingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ bool LightingManager::InitiateAction(int32_t aActor, Action_t aAction)
if (mState == kState_On && aAction == TURNOFF_ACTION)
{
action_initiated = true;
mState = kState_Off;
mState = kState_Off;
}
else if (mState == kState_Off && aAction == TURNON_ACTION)
{
action_initiated = true;
mState = kState_On;
mState = kState_On;
}

if (action_initiated)
Expand Down
10 changes: 5 additions & 5 deletions examples/lighting-app/nxp/k32w/k32w0/main/ZclCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
uint8_t * value)
{
if (path.mClusterId == OnOff::Id)
{
{
if (path.mAttributeId != OnOff::Attributes::OnOff::Id)
{
ChipLogProgress(Zcl, "Unknown attribute ID: " ChipLogFormatMEI, ChipLogValueMEI(path.mAttributeId));
return;
}

LightingMgr().InitiateAction(0, *value ? LightingManager::TURNON_ACTION : LightingManager::TURNOFF_ACTION);
}
}
else if (path.mClusterId == LevelControl::Id)
{
ChipLogProgress(Zcl,
Expand All @@ -52,13 +52,13 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
// WIP Apply attribute change to Light
}
else if (path.mClusterId == ColorControl::Id)
{
{
ChipLogProgress(Zcl,
"Color Control attribute ID: " ChipLogFormatMEI " Type: %" PRIu8 " Value: %" PRIu16 ", length %" PRIu16,
ChipLogValueMEI(path.mAttributeId), type, *value, size);

// WIP Apply attribute change to Light
}
// WIP Apply attribute change to Light
}
else if (path.mClusterId == OnOffSwitchConfiguration::Id)
{
ChipLogProgress(Zcl,
Expand Down

0 comments on commit 9a5d38f

Please sign in to comment.