From 5493766bdafc3a0f16f95899606f6936c9f147ba Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Mon, 23 Jul 2018 17:17:40 +0200 Subject: [PATCH] Update xsns_31_ccs811.ino --- sonoff/xsns_31_ccs811.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonoff/xsns_31_ccs811.ino b/sonoff/xsns_31_ccs811.ino index e4794a954..63610ddce 100644 --- a/sonoff/xsns_31_ccs811.ino +++ b/sonoff/xsns_31_ccs811.ino @@ -91,8 +91,8 @@ void CCS811Show(boolean json) #ifdef USE_DOMOTICZ if (0 == tele_period) DomoticzSensor(DZ_AIRQUALITY, eCO2); #endif // USE_DOMOTICZ - } else { #ifdef USE_WEBSERVER + } else { snprintf_P(mqtt_data, sizeof(mqtt_data), HTTP_SNS_CCS811, mqtt_data, eCO2, TVOC); #endif } @@ -103,9 +103,9 @@ void CCS811Show(boolean json) * Interface \*********************************************************************************************/ -#define XSNS_29 +#define XSNS_31 -boolean Xsns29(byte function) +boolean Xsns31(byte function) { boolean result = false;