Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bf13594

Browse files
restyled-commitsbakreanuj
authored andcommittedSep 17, 2024·
Restyled by clang-format
1 parent 8e9adf0 commit bf13594

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed
 

‎examples/chef/common/chef-dishwasher-mode-delegate-impl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ chip::Protocols::InteractionModel::Status chefDishwasherModeReadCallback(chip::E
124124
const EmberAfAttributeMetadata * attributeMetadata,
125125
uint8_t * buffer, uint16_t maxReadLength)
126126
{
127-
VerifyOrReturnValue(maxReadLength == 1 , chip::Protocols::InteractionModel::Status::ResourceExhausted);
127+
VerifyOrReturnValue(maxReadLength == 1, chip::Protocols::InteractionModel::Status::ResourceExhausted);
128128
buffer[0] = gDishwasherModeInstance->GetCurrentMode();
129129

130130
chip::Protocols::InteractionModel::Status ret = chip::Protocols::InteractionModel::Status::Success;

‎examples/chef/common/chef-operational-state-delegate-impl.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ chip::Protocols::InteractionModel::Status chefOperationalStateWriteCallback(chip
238238
{
239239
gOperationalStateDelegate->mCountDownTime.SetNonNull(
240240
static_cast<uint32_t>(gOperationalStateDelegate->kExampleCountDown));
241-
(void) DeviceLayer::SystemLayer().StartTimer(System::Clock::Seconds16(1), onOperationalStateTimerTick, gOperationalStateDelegate);
241+
(void) DeviceLayer::SystemLayer().StartTimer(System::Clock::Seconds16(1), onOperationalStateTimerTick,
242+
gOperationalStateDelegate);
242243
}
243244

244245
if (CHIP_NO_ERROR == err)
@@ -303,4 +304,4 @@ void emberAfOperationalStateClusterInitCallback(chip::EndpointId endpointId)
303304
gOperationalStateInstance->Init();
304305
}
305306

306-
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
307+
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER

‎examples/chef/common/stubs.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232

3333
#ifdef MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
3434
#include "chef-dishwasher-mode-delegate-impl.h"
35-
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
35+
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
3636

3737
#ifdef MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
3838
#include "chef-operational-state-delegate-impl.h"
39-
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
39+
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
4040

4141
using chip::app::DataModel::Nullable;
4242

@@ -96,11 +96,11 @@ Protocols::InteractionModel::Status emberAfExternalAttributeReadCallback(Endpoin
9696
#ifdef MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
9797
case chip::app::Clusters::DishwasherMode::Id:
9898
return chefDishwasherModeReadCallback(endpoint, clusterId, attributeMetadata, buffer, maxReadLength);
99-
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
99+
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
100100
#ifdef MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
101101
case chip::app::Clusters::OperationalState::Id:
102102
return chefOperationalStateReadCallback(endpoint, clusterId, attributeMetadata, buffer, maxReadLength);
103-
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
103+
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
104104
default:
105105
break;
106106
}
@@ -169,11 +169,11 @@ Protocols::InteractionModel::Status emberAfExternalAttributeWriteCallback(Endpoi
169169
#ifdef MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
170170
case chip::app::Clusters::DishwasherMode::Id:
171171
return chefDishwasherModeWriteCallback(endpoint, clusterId, attributeMetadata, buffer);
172-
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
172+
#endif // MATTER_DM_PLUGIN_DISHWASHER_MODE_SERVER
173173
#ifdef MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
174174
case chip::app::Clusters::OperationalState::Id:
175175
return chefOperationalStateWriteCallback(endpoint, clusterId, attributeMetadata, buffer);
176-
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
176+
#endif // MATTER_DM_PLUGIN_OPERATIONAL_STATE_SERVER
177177
default:
178178
break;
179179
}

0 commit comments

Comments
 (0)
Please sign in to comment.