From bb6418116f25c4afe2766a544a74e698661b9a1f Mon Sep 17 00:00:00 2001 From: arendst Date: Thu, 25 Jan 2018 10:56:20 +0100 Subject: [PATCH] Fix compile error due to missing define #1692 --- sonoff/xsns_interface.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonoff/xsns_interface.ino b/sonoff/xsns_interface.ino index c8a5b488b..5c5e0b3a7 100644 --- a/sonoff/xsns_interface.ino +++ b/sonoff/xsns_interface.ino @@ -119,13 +119,16 @@ boolean XsnsCall(byte Function) boolean result = false; for (byte x = 0; x < xsns_present; x++) { +#ifdef USE_WEBSERVER if (FUNC_WEB_APPEND == Function) { mqtt_data[0] = '\0'; } +#endif // USE_WEBSERVER result = xsns_func_ptr[x](Function); if (result) { break; } +#ifdef USE_WEBSERVER if ((FUNC_WEB_APPEND == Function) && strlen(mqtt_data)) { if (D_DECIMAL_SEPARATOR[0] != '.') { for (int i = 0; i < strlen(mqtt_data); i++) { @@ -136,6 +139,7 @@ boolean XsnsCall(byte Function) } WebServer->sendContent(mqtt_data); } +#endif // USE_WEBSERVER } return result;