From 001b6e4895c59f98f10cf7e8acc4b11eadef4f46 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 11 May 2020 15:38:59 +0200 Subject: [PATCH] Fix Dew Point is null Fix Dew Point is null if either or both Temperature and/ot Humidity is null (#8411) --- tasmota/support.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 5d7d06624..db4c9c26e 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -638,7 +638,7 @@ float ConvertHumidity(float h) float CalcTempHumToDew(float t, float h) { - if (isnan(h) || isnan(t)) { return 0.0; } + if (isnan(h) || isnan(t)) { return NAN; } if (Settings.flag.temperature_conversion) { // SetOption8 - Switch between Celsius or Fahrenheit t = (t - 32) / 1.8; // Celsius