From 14a03705076c9351ea5986cf29c23258bcc64679 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 23 Jun 2022 00:06:05 +0200 Subject: [PATCH] Fix user global entries --- tasmota/tasmota_support/support_command.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_support/support_command.ino b/tasmota/tasmota_support/support_command.ino index 1ff925f03..7580028f6 100644 --- a/tasmota/tasmota_support/support_command.ino +++ b/tasmota/tasmota_support/support_command.ino @@ -803,7 +803,7 @@ void CmndGlobalTemp(void) { // Temperature is now Celsius if ((temperature >= -50.0f) && (temperature <= 100.0f)) { TasmotaGlobal.temperature_celsius = temperature; - TasmotaGlobal.global_update = 1; // Keep global values just entered valid + TasmotaGlobal.global_update = TasmotaGlobal.uptime; TasmotaGlobal.user_globals[0] = 1; } } @@ -823,7 +823,7 @@ void CmndGlobalHum(void) { float humidity = CharToFloat(XdrvMailbox.data); if ((humidity >= 0.0f) && (humidity <= 100.0f)) { TasmotaGlobal.humidity = humidity; - TasmotaGlobal.global_update = 1; // Keep global values just entered valid + TasmotaGlobal.global_update = TasmotaGlobal.uptime; TasmotaGlobal.user_globals[1] = 1; } } @@ -845,7 +845,7 @@ void CmndGlobalPress(void) { // Pressure is now hPa if ((pressure >= 0.0f) && (pressure <= 1200.0f)) { TasmotaGlobal.pressure_hpa = pressure; - TasmotaGlobal.global_update = 1; // Keep global values just entered valid + TasmotaGlobal.global_update = TasmotaGlobal.uptime; TasmotaGlobal.user_globals[2] = 1; } }