Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and PeterC1965 committed Aug 28, 2024
1 parent 892d76e commit 4d1cd68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ void WaterHeaterManagementDelegate::SetTargetWaterTemperature(uint16_t targetWat
void WaterHeaterManagementDelegate::DrawOffHotWater(Percent percentageReplaced, uint16_t replacedWaterTemperature)
{
// First calculate the new average water temperature
mWaterTemperature =
static_cast<uint16_t>((mWaterTemperature * (100 - percentageReplaced) + replacedWaterTemperature * percentageReplaced) / 100);
mWaterTemperature = static_cast<uint16_t>(
(mWaterTemperature * (100 - percentageReplaced) + replacedWaterTemperature * percentageReplaced) / 100);

// Replaces percentageReplaced% of the water in the tank with water of a temperature replacedWaterTemperature
// Only supported if the kTankPercent feature is supported.
Expand Down

0 comments on commit 4d1cd68

Please sign in to comment.