From 79979a27fb5c3ef8ca5c29b5f510d7d4734006af Mon Sep 17 00:00:00 2001 From: stefanbode Date: Tue, 16 Nov 2021 14:00:49 +0100 Subject: [PATCH] Update xdrv_27_shutter.ino --- tasmota/xdrv_27_shutter.ino | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index 110740746..7d988e193 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -626,15 +626,12 @@ void ShutterStartInit(uint32_t i, int32_t direction, int32_t target_pos) Shutter[i].start_position = Shutter[i].real_position; TasmotaGlobal.rules_flag.shutter_moving = 1; ShutterAllowPreStartProcedure(i); - Shutter[i].time = 0; + Shutter[i].time = Shutter[i].last_reported_time = 0; // avoid file system writes during move to minimize missing steps savedata_original = Settings->save_data; Settings->save_data = 0; // will be restored after movement TasmotaGlobal.save_data_counter = Settings->save_data; - - Shutter[i].direction = direction; - Shutter[i].last_reported_time = 1; ShutterGlobal.skip_relay_change = 0; TasmotaGlobal.rules_flag.shutter_moved = 0; ShutterGlobal.start_reported = 0;