From 6444e5ff8f07936e6879e63262ecb384ffe17eee Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:47:58 +0200 Subject: [PATCH] Fix globals --- tasmota/tasmota_support/support_tasmota.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_support/support_tasmota.ino b/tasmota/tasmota_support/support_tasmota.ino index efab5456f..ebc139255 100644 --- a/tasmota/tasmota_support/support_tasmota.ino +++ b/tasmota/tasmota_support/support_tasmota.ino @@ -849,7 +849,7 @@ const char kGlobalValues[] PROGMEM = D_JSON_TEMPERATURE "|" D_JSON_HUMIDITY "|" void GetGlobalValues(void) { for (uint32_t type = 0; type < 3; type++) { - if (!Settings->global_sensor_index[type] || TasmotaGlobal.user_globals[0]) { continue; } + if (!Settings->global_sensor_index[type] || TasmotaGlobal.user_globals[type]) { continue; } char key[20]; GetTextIndexed(key, sizeof(key), type, kGlobalValues);