From 9be44131b9c0ae98a94ebe354f4f695da89dcffb Mon Sep 17 00:00:00 2001 From: stefanbode Date: Sun, 4 Dec 2022 13:25:20 +0100 Subject: [PATCH] Support Setoption13 1 on shutters to immediate feedback --- tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino index 733de46a0..6efc930fe 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_shutter.ino @@ -864,7 +864,7 @@ void ShutterButtonHandler(void) } if (NOT_PRESSED == button) { - if (Shutter[shutter_index].direction && Button.hold_timer[button_index] > 0) { + if (Shutter[shutter_index].direction && (Button.hold_timer[button_index] > 0 && (!Settings->flag.button_single || Button.hold_timer[button_index] > 20))) { XdrvMailbox.index = shutter_index +1; XdrvMailbox.payload = XdrvMailbox.index; //AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("SHT: Shtr%d, Button %d, hold %d, dir %d, index %d, payload %d"), shutter_index+1, button_index+1, Button.hold_timer[button_index],Shutter[shutter_index].direction,XdrvMailbox.index,XdrvMailbox.payload);