From 2eac0e979e96a7ff5c1f29f100de1c0a856267f9 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Thu, 21 Jan 2021 11:51:05 +0100 Subject: [PATCH] Fix crash during hammering buttons --- tasmota/xdrv_27_shutter.ino | 1 - 1 file changed, 1 deletion(-) diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index cd54878d7..a774398ba 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -414,7 +414,6 @@ void ShutterDecellerateForStop(uint8_t i) analogWriteFreq(Shutter[i].pwm_velocity); analogWrite(Pin(GPIO_PWM1, i), 50); Shutter[i].pwm_velocity = 0; - analogWriteFreq(Shutter[i].pwm_velocity); while (RtcSettings.pulse_counter[i] < (uint32_t)(Shutter[i].target_position-Shutter[i].start_position)*Shutter[i].direction*ShutterGlobal.open_velocity_max/RESOLUTION/STEPS_PER_SECOND) { delay(1); }