Merge pull request #10650 from stefanbode/patch-9

Fix crash during hammering buttons
This commit is contained in:
Theo Arends 2021-01-21 12:32:42 +01:00 committed by GitHub
commit 3a71b41008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}