From ab2439f6c85a19f73cf46fcbd68769374ce5a9fb Mon Sep 17 00:00:00 2001 From: SteWers <42718143+SteWers@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:24:15 +0100 Subject: [PATCH] Modify shutter driver for GUI sensor separators (#20506) --- tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino | 3 +++ tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino | 1 + 2 files changed, 4 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino index dbcc63fbe..617dcb62e 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino @@ -999,6 +999,9 @@ void WSContentSeparator(uint32_t state) { case 2: // Print separator on next WSContentSeparator(1) request = true; break; + case 3: // Don't print separator on next WSContentSeparator(1) + request = false; + break; } } diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino index 2fdc52b07..7bf8b4563 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino @@ -1141,6 +1141,7 @@ void ShutterToggle(bool dir) void ShutterShow(){ for (uint32_t i = 0; i < TasmotaGlobal.shutters_present; i++) { WSContentSend_P(HTTP_MSG_SLIDER_SHUTTER, (Settings->shutter_options[i] & 1) ? D_OPEN : D_CLOSE,(Settings->shutter_options[i] & 1) ? D_CLOSE : D_OPEN, (Settings->shutter_options[i] & 1) ? (100 - ShutterRealToPercentPosition(-9999, i)) : ShutterRealToPercentPosition(-9999, i), i+1); + WSContentSeparator(3); // Don't print separator on next WSContentSeparator(1) } }