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