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 stingchang committed May 3, 2024
1 parent 9c3b9e7 commit 4ffc4a9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/chef/common/chef-rvc-mode-delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ chip::Protocols::InteractionModel::Status chefRvcRunModeWriteCallback(chip::Endp
uint8_t * buffer)
{
// this cluster is only enabled for endpoint 1
if(endpointId != 1) {
if (endpointId != 1)
{
return chip::Protocols::InteractionModel::Status::UnsupportedEndpoint;
}

Expand All @@ -126,8 +127,8 @@ chip::Protocols::InteractionModel::Status chefRvcRunModeWriteCallback(chip::Endp
switch (attributeId)
{
case chip::app::Clusters::RvcRunMode::Attributes::CurrentMode::Id: {
uint8_t m = static_cast<uint8_t>(buffer[0]);
ret = clusterInstance->UpdateCurrentMode(m);
uint8_t m = static_cast<uint8_t>(buffer[0]);
ret = clusterInstance->UpdateCurrentMode(m);
if (chip::Protocols::InteractionModel::Status::Success != ret)
{
ChipLogError(DeviceLayer, "Invalid Attribute Update status: %d", static_cast<int>(ret));
Expand Down Expand Up @@ -250,7 +251,8 @@ chip::Protocols::InteractionModel::Status chefRvcCleanModeWriteCallback(chip::En
uint8_t * buffer)
{
// this cluster is only enabled for endpoint 1
if(endpointId != 1) {
if (endpointId != 1)
{
return chip::Protocols::InteractionModel::Status::UnsupportedEndpoint;
}

Expand Down

0 comments on commit 4ffc4a9

Please sign in to comment.