Skip to content

Commit

Permalink
fix wrong comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
coelner committed Dec 25, 2017
1 parent 44436ac commit 38bb091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnvironmentCalculations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ float EnvironmentCalculations::HeatIndex
}
heatindex = 0.5 * (temperature + 61.0 + ((temperature - 68.0) * 1.2) + (humidity * 0.094));

if (heatindex > 79) {
if (heatindex >= 79) {
float tempQ, humQ;
tempQ = temperature * temperature;
humQ = humidity * humidity;
Expand Down

0 comments on commit 38bb091

Please sign in to comment.