Skip to content

Commit 6332774

Browse files
removed double conversion to Celsius
1 parent f566d58 commit 6332774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DHT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ float DHT::readHumidity(bool force) {
107107
float DHT::computeHeatIndex(bool isFahrenheit) {
108108
float hi = computeHeatIndex(readTemperature(isFahrenheit), readHumidity(),
109109
isFahrenheit);
110-
return isFahrenheit ? hi : convertFtoC(hi);
110+
return hi;
111111
}
112112

113113
//boolean isFahrenheit: True == Fahrenheit; False == Celcius

0 commit comments

Comments
 (0)