mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
removed double conversion to Celsius
This commit is contained in:
parent
f566d58f47
commit
6332774b18
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