File tree 2 files changed +6
-7
lines changed
examples/all-clusters-app/all-clusters-common
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,18 @@ namespace Clusters {
29
29
30
30
namespace WaterHeaterMode {
31
31
32
- const uint8_t ModeOff = 0 ;
32
+ const uint8_t ModeOff = 0 ;
33
33
const uint8_t ModeManual = 1 ;
34
- const uint8_t ModeTimed = 2 ;
34
+ const uint8_t ModeTimed = 2 ;
35
35
36
36
// / This is an application level delegate to handle WaterHeaterMode commands according to the specific business logic.
37
37
class ExampleWaterHeaterModeDelegate : public ModeBase ::Delegate
38
38
{
39
39
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 ) } };
42
42
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 ) } };
44
44
45
45
const detail::Structs::ModeOptionStruct::Type kModeOptions [3 ] = {
46
46
detail::Structs::ModeOptionStruct::Type{ .label = CharSpan::fromCharString (" Off" ),
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ CHIP_ERROR ExampleWaterHeaterModeDelegate::Init()
34
34
}
35
35
36
36
// 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)
39
38
{
40
39
response.status = to_underlying (ModeBase::StatusCode::kGenericFailure );
41
40
}
You can’t perform that action at this time.
0 commit comments