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 5964de9

Browse files
restyled-commitsPeterC1965
authored andcommittedJul 28, 2024·
Restyled by clang-format
1 parent f38b2f4 commit 5964de9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed
 

‎examples/all-clusters-app/all-clusters-common/include/WhmManufacturer.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ class WhmManufacturer
8686
* @param duration Indicates the time period in seconds for which the BOOST state is activated before it automatically reverts
8787
* to the previous mode (e.g. OFF, MANUAL or TIMED).
8888
* @param oneShot Indicates whether the BOOST state should be automatically canceled once the hot water has first reached the
89-
* set point temperature (or the TemporarySetpoint temperature, if specified) for the TargetPercentage (if specified).
89+
* set point temperature (or the TemporarySetpoint temperature, if specified) for the TargetPercentage (if
90+
* specified).
9091
* @param emergencyBoost Indicates that the consumer wants the water to be heated as quickly as practicable. This MAY cause
9192
* multiple heat sources to be activated (e.g. a heat pump and direct electric heating element).
9293
* @param temporarySetpoint Indicates the target temperature to which to heat the hot water for this Boost command. It SHALL be
9394
* used instead of the normal set point temperature whilst the BOOST state is active.
9495
* @param targetPercentage If the tank supports the TankPercent feature, this field indicates the amount of water that SHALL be
9596
* heated by this Boost command before the heater is switched off.
9697
* @param targetReheat If the tank supports the TankPercent feature, and the heating by this Boost command has ceased because
97-
* the TargetPercentage of the water in the tank has been heated to the set point (or TemporarySetpoint if included),
98-
* this field indicates the percentage to which the hot water in the tank SHALL be allowed to fall before again
98+
* the TargetPercentage of the water in the tank has been heated to the set point (or TemporarySetpoint if
99+
* included), this field indicates the percentage to which the hot water in the tank SHALL be allowed to fall before again
99100
* beginning to reheat it.
100101
*
101102
* @return Success if the boost command is successful; otherwise return the appropriate error.

‎examples/all-clusters-app/all-clusters-common/src/WhmDelegateImpl.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ using Protocols::InteractionModel::Status;
3030

3131
WaterHeaterManagementDelegate::WaterHeaterManagementDelegate(EndpointId clustersEndpoint) :
3232
mpWhmInstance(nullptr), mpWhmManufacturer(nullptr), mWaterTemperature(0), mReplacedWaterTemperature(0),
33-
mBoostTargetTemperatureReached(false), mTankVolume(0),
34-
mEstimatedHeatRequired(0), mTankPercentage(0), mBoostState(BoostStateEnum::kInactive)
33+
mBoostTargetTemperatureReached(false), mTankVolume(0), mEstimatedHeatRequired(0), mTankPercentage(0),
34+
mBoostState(BoostStateEnum::kInactive)
3535
{}
3636

3737
void WaterHeaterManagementDelegate::SetWaterHeaterManagementInstance(WaterHeaterManagement::Instance & instance)
@@ -344,10 +344,10 @@ bool WaterHeaterManagementDelegate::HasWaterTemperatureReachedTarget() const
344344
// mBoostTargetReheat indicates the percentage to which the hot water in the tank SHALL be allowed to fall before
345345
// again beginning to reheat it.
346346
//
347-
// For example if the TargetPercentage was 80%, and the TargetReheat was 40%, then after initial heating to 80% hot water,
348-
// the tank may have hot water drawn off until only 40% hot water remains. At this point the heater will begin to heat back
349-
// up to 80% of hot water. If this field and the OneShot field were both omitted, heating would begin again after any water
350-
// draw which reduced the TankPercentage below 80%.
347+
// For example if the TargetPercentage was 80%, and the TargetReheat was 40%, then after initial heating to 80% hot
348+
// water, the tank may have hot water drawn off until only 40% hot water remains. At this point the heater will begin to
349+
// heat back up to 80% of hot water. If this field and the OneShot field were both omitted, heating would begin again
350+
// after any water draw which reduced the TankPercentage below 80%.
351351

352352
// If this field is included then the TargetPercentage field SHALL also be included, and the OneShot excluded.
353353
VerifyOrReturnValue(mTankPercentage >= mBoostTargetReheat.Value(), false);

0 commit comments

Comments
 (0)
Please sign in to comment.