Fix globals

This commit is contained in:
Theo Arends 2022-06-22 23:47:58 +02:00
parent cefe015c68
commit 6444e5ff8f

View File

@ -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);