From 6332774b183d1b61e7e46267e5e1bb0e1b489a8c Mon Sep 17 00:00:00 2001 From: matthiasdanner Date: Wed, 17 Apr 2019 20:01:26 +0200 Subject: [PATCH] removed double conversion to Celsius --- DHT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DHT.cpp b/DHT.cpp index 6d2308e..390cfad 100644 --- a/DHT.cpp +++ b/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