File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,13 @@ float DHT::readHumidity(bool force) {
89
89
}
90
90
91
91
// boolean isFahrenheit: True == Fahrenheit; False == Celcius
92
- float DHT::computeHeatIndex (float temperature, float percentHumidity, bool isFahrenheit) {
92
+ float DHT::computeHeatIndex (isFahrenheit) {
93
+ float hi = self.computeHeatIndex (self.readTemperature (isFahrenheit), self.readHumidity (), isFahrenheit);
94
+ return isFahrenheit ? hi : convertFtoC (hi);
95
+ }
96
+
97
+ // boolean isFahrenheit: True == Fahrenheit; False == Celcius
98
+ float DHT::computeHeatIndex (float temperature, floast percentHumidity, bool isFahrenheit) {
93
99
// Using both Rothfusz and Steadman's equations
94
100
// http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml
95
101
float hi;
You can’t perform that action at this time.
0 commit comments