Skip to content

Commit 82a23f4

Browse files
committed
Merge remote-tracking branch 'PeterC1965/whm-follow-up-part1' into whm-follow-up-part1
2 parents 3be921d + a614aa0 commit 82a23f4

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
@@ -320,7 +320,7 @@ uint8_t WaterHeaterManagementDelegate::CalculateTankPercentage() const
320320
int32_t divisor = static_cast<int32_t>(GetActiveTargetWaterTemperature()) - static_cast<int32_t>(mColdWaterTemperature);
321321

322322
tankPercentage = 100;
323-
if (divisor >= 0)
323+
if (divisor > 0)
324324
{
325325
tankPercentage = 100 * (static_cast<int32_t>(mWaterTemperature) - static_cast<int32_t>(mColdWaterTemperature)) / divisor;
326326
}

0 commit comments

Comments
 (0)