From de198ba8617064811b30a3b1eed7fbd075b96983 Mon Sep 17 00:00:00 2001 From: Andre Thomas Date: Wed, 18 Sep 2019 22:49:19 +0200 Subject: [PATCH] Bracketing is an art... I was once told :) --- sonoff/xsns_21_sgp30.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xsns_21_sgp30.ino b/sonoff/xsns_21_sgp30.ino index a8b047715..7df1a65de 100644 --- a/sonoff/xsns_21_sgp30.ino +++ b/sonoff/xsns_21_sgp30.ino @@ -126,7 +126,7 @@ void Sgp30Show(bool json) if (json) { ResponseAppend_P(PSTR(",\"SGP30\":{\"" D_JSON_ECO2 "\":%d,\"" D_JSON_TVOC "\":%d"), sgp.eCO2, sgp.TVOC); - if (global_update) && global_humidity>0 && global_temperature!=9999) { + if (global_update && global_humidity>0 && global_temperature!=9999) { // has humidity + temperature dtostrfd(sgp30_abshum,4,abs_hum); ResponseAppend_P(PSTR(",\"" D_JSON_AHUM "\":%s"),abs_hum);