Skip to content

Commit aae3b27

Browse files
Update examples/energy-management-app/energy-management-common/water-heater/src/WhmDelegateImpl.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent 82a23f4 commit aae3b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/energy-management-app/energy-management-common/water-heater/src/WhmDelegateImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ int16_t WaterHeaterManagementDelegate::GetActiveTargetWaterTemperature() const
308308
// time, and the TemporarySetpoint (if not null) would be overiding the thermostat's occupiedHeatingSetpoint.
309309
// However, this code doesn't rely upon the thermostat cluster.
310310
int16_t targetTemperature = (mBoostState == BoostStateEnum::kActive && mBoostTemporarySetpoint.HasValue())
311-
? static_cast<int16_t>(mBoostTemporarySetpoint.Value())
311+
? mBoostTemporarySetpoint.Value()
312312
: mTargetWaterTemperature;
313313

314314
return targetTemperature;

0 commit comments

Comments
 (0)