Merge pull request #130 from matthiasdanner/master

removed double conversion to Celsius
This commit is contained in:
siddacious 2019-04-17 20:05:17 -07:00 committed by GitHub
commit 8e0a94fff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ float DHT::readHumidity(bool force) {
float DHT::computeHeatIndex(bool isFahrenheit) { float DHT::computeHeatIndex(bool isFahrenheit) {
float hi = computeHeatIndex(readTemperature(isFahrenheit), readHumidity(), float hi = computeHeatIndex(readTemperature(isFahrenheit), readHumidity(),
isFahrenheit); isFahrenheit);
return isFahrenheit ? hi : convertFtoC(hi); return hi;
} }
//boolean isFahrenheit: True == Fahrenheit; False == Celcius //boolean isFahrenheit: True == Fahrenheit; False == Celcius