File tree 2 files changed +2
-13
lines changed
examples/all-clusters-app/all-clusters-common
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ class WhmManufacturer
120
120
121
121
private:
122
122
WaterHeaterManagementInstance * mWhmInstance ;
123
- bool mBoostActive ;
124
123
};
125
124
126
125
/* * @brief Helper function to return the singleton WhmManufacturer instance
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ CHIP_ERROR WhmManufacturer::Init()
43
43
return CHIP_ERROR_UNINITIALIZED;
44
44
}
45
45
46
- mBoostActive = false ;
47
-
48
46
dg->SetHeaterTypes (BitMask<WaterHeaterTypeBitmap>(WaterHeaterTypeBitmap::kImmersionElement1 ));
49
47
dg->SetHeatDemand (BitMask<WaterHeaterDemandBitmap>(WaterHeaterDemandBitmap::kImmersionElement1 ));
50
48
dg->SetEstimatedHeatRequired (10000 );
@@ -109,13 +107,10 @@ Status WhmManufacturer::TurnHeatingOn(bool emergencyBoost)
109
107
110
108
WaterHeaterManagementDelegate * dg = GetWhmDelegate ();
111
109
112
- if (dg->GetBoostState () == BoostStateEnum::kActive )
113
- {
114
- mBoostActive = true ;
115
- }
116
-
117
110
if (emergencyBoost)
118
111
{
112
+ // emergencyBoost that the consumer wants the water to be heated as quickly as practicable.
113
+ // Thus, cause multiple heat sources to be activated
119
114
dg->SetHeatDemand (BitMask<WaterHeaterDemandBitmap>(WaterHeaterDemandBitmap::kImmersionElement1 ,
120
115
WaterHeaterDemandBitmap::kImmersionElement2 ));
121
116
}
@@ -133,11 +128,6 @@ Status WhmManufacturer::TurnHeatingOff()
133
128
134
129
ChipLogProgress (AppServer, " WhmManufacturer::TurnHeatingOff" );
135
130
136
- if (mBoostActive )
137
- {
138
- mBoostActive = false ;
139
- }
140
-
141
131
WaterHeaterManagementDelegate * dg = GetWhmDelegate ();
142
132
143
133
dg->SetHeatDemand (BitMask<WaterHeaterDemandBitmap>(0 ));
You can’t perform that action at this time.
0 commit comments