Skip to content

Commit

Permalink
Update examples/energy-management-app/energy-management-common/water-…
Browse files Browse the repository at this point in the history
…heater/src/WhmDelegateImpl.cpp

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
jamesharrow and bzbarsky-apple authored Aug 30, 2024
1 parent 82a23f4 commit aae3b27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ int16_t WaterHeaterManagementDelegate::GetActiveTargetWaterTemperature() const
// time, and the TemporarySetpoint (if not null) would be overiding the thermostat's occupiedHeatingSetpoint.
// However, this code doesn't rely upon the thermostat cluster.
int16_t targetTemperature = (mBoostState == BoostStateEnum::kActive && mBoostTemporarySetpoint.HasValue())
? static_cast<int16_t>(mBoostTemporarySetpoint.Value())
? mBoostTemporarySetpoint.Value()
: mTargetWaterTemperature;

return targetTemperature;
Expand Down

0 comments on commit aae3b27

Please sign in to comment.