From 3f81f939db027aaae36728621a3559eacc811296 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Sun, 22 Aug 2021 15:59:01 +0200 Subject: [PATCH] Update xdrv_27_shutter.ino Fixing WDT reset on shutters with stepper motors during deceleration #12849 --- tasmota/xdrv_27_shutter.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index b886c58f4..7368ecef5 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -1084,6 +1084,7 @@ void CmndShutterPosition(void) } int8_t new_shutterdirection = Shutter[index].real_position < Shutter[index].target_position ? 1 : -1; if (Shutter[index].direction == -new_shutterdirection) { + Shutter[index].start_position = Shutter[index].target_position; ShutterPowerOff(index); } if (Shutter[index].direction != new_shutterdirection) {