From a6b0cf9d318bc4b2210af265bf7bafe7aaed512a Mon Sep 17 00:00:00 2001 From: stefanbode Date: Mon, 15 Nov 2021 18:43:47 +0100 Subject: [PATCH] Update xdrv_27_shutter.ino --- tasmota/xdrv_27_shutter.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index 0722622eb..86160b565 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -557,7 +557,7 @@ void ShutterUpdatePosition(void) CmndShutterPosition(); return; } else { - Settings->shutter_tilt_pos[i] = Shutter[i].tilt_real_pos; + Settings->shutter_tilt_pos[i] = Shutter[i].tilt_real_pos; } ShutterLogPos(i); @@ -1150,10 +1150,10 @@ void CmndShutterPosition(void) int8_t new_shutterdirection; if (abs(Shutter[index].target_position - Shutter[index].real_position ) > Shutter[index].min_realPositionChange) { new_shutterdirection = Shutter[index].real_position < Shutter[index].target_position ? 1 : -1; - Shutter[i].tiltmoving = 0; + Shutter[index].tiltmoving = 0; } else { new_shutterdirection = Shutter[index].tilt_real_pos < Shutter[index].tilt_target_pos ? 1 : -1; - Shutter[i].tiltmoving = 1; + Shutter[index].tiltmoving = 1; } if (Shutter[index].direction == -new_shutterdirection) {