mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2025-07-29 16:37:16 +02:00
Merge pull request #130 from matthiasdanner/master
removed double conversion to Celsius
This commit is contained in:
2
DHT.cpp
2
DHT.cpp
@ -107,7 +107,7 @@ float DHT::readHumidity(bool force) {
|
||||
float DHT::computeHeatIndex(bool isFahrenheit) {
|
||||
float hi = computeHeatIndex(readTemperature(isFahrenheit), readHumidity(),
|
||||
isFahrenheit);
|
||||
return isFahrenheit ? hi : convertFtoC(hi);
|
||||
return hi;
|
||||
}
|
||||
|
||||
//boolean isFahrenheit: True == Fahrenheit; False == Celcius
|
||||
|
Reference in New Issue
Block a user