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) {
8989}
9090
9191// 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) {
9399 // Using both Rothfusz and Steadman's equations
94100 // http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml
95101 float hi;
You can’t perform that action at this time.
0 commit comments