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 11, 2024
1 parent 9c84e08 commit 11b4c03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/chef/common/chef-rvc-mode-delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ chip::Protocols::InteractionModel::Status chefRvcRunModeReadCallback(chip::Endpo
const EmberAfAttributeMetadata * attributeMetadata,
uint8_t * buffer, uint16_t maxReadLength)
{
if(sizeof(*attributeMetadata) <= sizeof(buffer)) {
if (sizeof(*attributeMetadata) <= sizeof(buffer))
{
memcpy(buffer, &attributeMetadata, sizeof(attributeMetadata));
return chip::Protocols::InteractionModel::Status::Success;
}
Expand Down Expand Up @@ -291,7 +292,8 @@ chip::Protocols::InteractionModel::Status chefRvcCleanModeReadCallback(chip::End
const EmberAfAttributeMetadata * attributeMetadata,
uint8_t * buffer, uint16_t maxReadLength)
{
if(sizeof(*attributeMetadata) <= sizeof(buffer)) {
if (sizeof(*attributeMetadata) <= sizeof(buffer))
{
memcpy(buffer, &attributeMetadata, sizeof(attributeMetadata));
return chip::Protocols::InteractionModel::Status::Success;
}
Expand Down
3 changes: 2 additions & 1 deletion examples/chef/common/chef-rvc-operational-state-delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ chip::Protocols::InteractionModel::Status chefRvcOperationalStateReadCallback(ch
const EmberAfAttributeMetadata * attributeMetadata,
uint8_t * buffer, uint16_t maxReadLength)
{
if(sizeof(*attributeMetadata) <= sizeof(buffer)) {
if (sizeof(*attributeMetadata) <= sizeof(buffer))
{
memcpy(buffer, &attributeMetadata, sizeof(attributeMetadata));
return chip::Protocols::InteractionModel::Status::Success;
}
Expand Down

0 comments on commit 11b4c03

Please sign in to comment.