mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Merge pull request #130 from matthiasdanner/master
removed double conversion to Celsius
This commit is contained in:
commit
8e0a94fff3
2
DHT.cpp
2
DHT.cpp
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user