removed double conversion to Celsius

This commit is contained in:
matthiasdanner 2019-04-17 20:01:26 +02:00 committed by GitHub
parent f566d58f47
commit 6332774b18
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