File tree 1 file changed +2
-2
lines changed
examples/energy-management-app/energy-management-common/water-heater/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -355,8 +355,8 @@ void WaterHeaterManagementDelegate::SetTargetWaterTemperature(uint16_t targetWat
355
355
void WaterHeaterManagementDelegate::DrawOffHotWater (Percent percentageReplaced, uint16_t replacedWaterTemperature)
356
356
{
357
357
// First calculate the new average water temperature
358
- mWaterTemperature =
359
- static_cast < uint16_t >( (mWaterTemperature * (100 - percentageReplaced) + replacedWaterTemperature * percentageReplaced) / 100 );
358
+ mWaterTemperature = static_cast < uint16_t >(
359
+ (mWaterTemperature * (100 - percentageReplaced) + replacedWaterTemperature * percentageReplaced) / 100 );
360
360
361
361
// Replaces percentageReplaced% of the water in the tank with water of a temperature replacedWaterTemperature
362
362
// Only supported if the kTankPercent feature is supported.
You can’t perform that action at this time.
0 commit comments