From c48e6daed40a03cd85bf6aceea5cecb3d8940ce3 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Mon, 18 Nov 2019 09:23:21 +0100 Subject: [PATCH] Update support.ino --- tasmota/support.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/support.ino b/tasmota/support.ino index 0520a04d2..a0f859d56 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -520,6 +520,7 @@ float ConvertTemp(float c) if (!isnan(c) && Settings.flag.temperature_conversion) { // SetOption8 - Switch between Celsius or Fahrenheit result = c * 1.8 + 32; // Fahrenheit } + result = result + (0.1 * Settings.temp_comp); return result; } @@ -530,6 +531,7 @@ float ConvertTempToCelsius(float c) if (!isnan(c) && Settings.flag.temperature_conversion) { // SetOption8 - Switch between Celsius or Fahrenheit result = (c - 32) / 1.8; // Celsius } + result = result + (0.1 * Settings.temp_comp); return result; }