From aa2053988a089ff8944720cccc75f43671e274c8 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:02:36 +0100 Subject: [PATCH] Skip slicing for Berry --- tasmota/tasmota_xx2c_global/xdrv_interface.ino | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xx2c_global/xdrv_interface.ino b/tasmota/tasmota_xx2c_global/xdrv_interface.ino index 29c53dd67..277ffa377 100644 --- a/tasmota/tasmota_xx2c_global/xdrv_interface.ino +++ b/tasmota/tasmota_xx2c_global/xdrv_interface.ino @@ -1148,7 +1148,18 @@ 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 + if (FUNC_WEB_SENSOR == function) { +#ifdef XFUNC_PTR_IN_ROM + uint32_t index = pgm_read_byte(kXdrvList + x); +#else + uint32_t index = kXdrvList[x]; +#endif + if (52 == index) { // Skip berry + WSContentSeparator(3); + } else { + WSContentSeparator(1); + } + } // Show separator if needed #endif // USE_WEBSERVER #ifdef USE_PROFILE_FUNCTION