Skip to content

Commit 5571e88

Browse files
restyled-commitsPeterC1965
authored andcommitted
Restyled by clang-format
1 parent 963017e commit 5571e88

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

examples/all-clusters-app/all-clusters-common/include/water-heater-mode.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ namespace Clusters {
2929

3030
namespace WaterHeaterMode {
3131

32-
const uint8_t ModeOff = 0;
32+
const uint8_t ModeOff = 0;
3333
const uint8_t ModeManual = 1;
34-
const uint8_t ModeTimed = 2;
34+
const uint8_t ModeTimed = 2;
3535

3636
/// This is an application level delegate to handle WaterHeaterMode commands according to the specific business logic.
3737
class ExampleWaterHeaterModeDelegate : public ModeBase::Delegate
3838
{
3939
private:
40-
using ModeTagStructType = detail::Structs::ModeTagStruct::Type;
41-
ModeTagStructType modeTagsOff[1] = { { .value = to_underlying(ModeTag::kOff) } };
40+
using ModeTagStructType = detail::Structs::ModeTagStruct::Type;
41+
ModeTagStructType modeTagsOff[1] = { { .value = to_underlying(ModeTag::kOff) } };
4242
ModeTagStructType modeTagsManual[1] = { { .value = to_underlying(ModeTag::kManual) } };
43-
ModeTagStructType modeTagsTimed[1] = { { .value = to_underlying(ModeTag::kTimed) } };
43+
ModeTagStructType modeTagsTimed[1] = { { .value = to_underlying(ModeTag::kTimed) } };
4444

4545
const detail::Structs::ModeOptionStruct::Type kModeOptions[3] = {
4646
detail::Structs::ModeOptionStruct::Type{ .label = CharSpan::fromCharString("Off"),

examples/all-clusters-app/all-clusters-common/src/water-heater-mode.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ CHIP_ERROR ExampleWaterHeaterModeDelegate::Init()
3434
}
3535

3636
// todo refactor code by making a parent class for all ModeInstance classes to reduce flash usage.
37-
void ExampleWaterHeaterModeDelegate::HandleChangeToMode(uint8_t NewMode,
38-
ModeBase::Commands::ChangeToModeResponse::Type & response)
37+
void ExampleWaterHeaterModeDelegate::HandleChangeToMode(uint8_t NewMode, ModeBase::Commands::ChangeToModeResponse::Type & response)
3938
{
4039
response.status = to_underlying(ModeBase::StatusCode::kGenericFailure);
4140
}

0 commit comments

Comments
 (0)