From 5e84d57c2a443aa3346c55e16864d0cbefebc5f0 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 15 Jan 2024 22:08:33 +0100 Subject: [PATCH] Fix compilation without webserver --- tasmota/tasmota_xx2c_global/xdrv_interface.ino | 2 ++ tasmota/tasmota_xx2c_global/xsns_interface.ino | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tasmota/tasmota_xx2c_global/xdrv_interface.ino b/tasmota/tasmota_xx2c_global/xdrv_interface.ino index a1dfceea9..29c53dd67 100644 --- a/tasmota/tasmota_xx2c_global/xdrv_interface.ino +++ b/tasmota/tasmota_xx2c_global/xdrv_interface.ino @@ -1147,7 +1147,9 @@ bool XdrvCall(uint32_t function) { result = xdrv_func_ptr[x](function); +#ifdef USE_WEBSERVER if (FUNC_WEB_SENSOR == function) { WSContentSeparator(1); } // Show separator if needed +#endif // USE_WEBSERVER #ifdef USE_PROFILE_FUNCTION #ifdef XFUNC_PTR_IN_ROM diff --git a/tasmota/tasmota_xx2c_global/xsns_interface.ino b/tasmota/tasmota_xx2c_global/xsns_interface.ino index 49f5311eb..3c01b39c6 100644 --- a/tasmota/tasmota_xx2c_global/xsns_interface.ino +++ b/tasmota/tasmota_xx2c_global/xsns_interface.ino @@ -1130,7 +1130,9 @@ bool XsnsCall(uint32_t function) { result = xsns_func_ptr[x](function); +#ifdef USE_WEBSERVER if (FUNC_WEB_SENSOR == function) { WSContentSeparator(1); } // Show separator if needed +#endif // USE_WEBSERVER #ifdef USE_PROFILE_FUNCTION #ifdef XFUNC_PTR_IN_ROM