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 bakreanuj committed Sep 17, 2024
1 parent 8e9adf0 commit bf13594
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ chip::Protocols::InteractionModel::Status chefDishwasherModeReadCallback(chip::E
const EmberAfAttributeMetadata * attributeMetadata,
uint8_t * buffer, uint16_t maxReadLength)
{
VerifyOrReturnValue(maxReadLength == 1 , chip::Protocols::InteractionModel::Status::ResourceExhausted);
VerifyOrReturnValue(maxReadLength == 1, chip::Protocols::InteractionModel::Status::ResourceExhausted);
buffer[0] = gDishwasherModeInstance->GetCurrentMode();

chip::Protocols::InteractionModel::Status ret = chip::Protocols::InteractionModel::Status::Success;
Expand Down
5 changes: 3 additions & 2 deletions examples/chef/common/chef-operational-state-delegate-impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ chip::Protocols::InteractionModel::Status chefOperationalStateWriteCallback(chip
{
gOperationalStateDelegate->mCountDownTime.SetNonNull(
static_cast<uint32_t>(gOperationalStateDelegate->kExampleCountDown));
(void) DeviceLayer::SystemLayer().StartTimer(System::Clock::Seconds16(1), onOperationalStateTimerTick, gOperationalStateDelegate);
(void) DeviceLayer::SystemLayer().StartTimer(System::Clock::Seconds16(1), onOperationalStateTimerTick,
gOperationalStateDelegate);
}

if (CHIP_NO_ERROR == err)
Expand Down Expand Up @@ -303,4 +304,4 @@ void emberAfOperationalStateClusterInitCallback(chip::EndpointId endpointId)
gOperationalStateInstance->Init();
}

#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
12 changes: 6 additions & 6 deletions examples/chef/common/stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@

#ifdef MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
#include "chef-dishwasher-mode-delegate-impl.h"
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER

#ifdef MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
#include "chef-operational-state-delegate-impl.h"
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER

using chip::app::DataModel::Nullable;

Expand Down Expand Up @@ -96,11 +96,11 @@ Protocols::InteractionModel::Status emberAfExternalAttributeReadCallback(Endpoin
#ifdef MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
case chip::app::Clusters::DishwasherMode::Id:
return chefDishwasherModeReadCallback(endpoint, clusterId, attributeMetadata, buffer, maxReadLength);
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
#ifdef MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
case chip::app::Clusters::OperationalState::Id:
return chefOperationalStateReadCallback(endpoint, clusterId, attributeMetadata, buffer, maxReadLength);
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
default:
break;
}
Expand Down Expand Up @@ -169,11 +169,11 @@ Protocols::InteractionModel::Status emberAfExternalAttributeWriteCallback(Endpoi
#ifdef MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
case chip::app::Clusters::DishwasherMode::Id:
return chefDishwasherModeWriteCallback(endpoint, clusterId, attributeMetadata, buffer);
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
#ifdef MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
case chip::app::Clusters::OperationalState::Id:
return chefOperationalStateWriteCallback(endpoint, clusterId, attributeMetadata, buffer);
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
default:
break;
}
Expand Down

0 comments on commit bf13594

Please sign in to comment.