Skip to content

Commit 25c2a6f

Browse files
authored
Merge pull request arendst#7845 from to-scho/hotfix/shutterbuttons_multipress_window_timing
extended multipress window from 0.5s to 0.75s
2 parents 4cb2690 + 543f832 commit 25c2a6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasmota/xdrv_27_shutter.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ void ShutterButtonHandler(void)
548548
Button.press_counter[button_index] = 99; // Remember to discard further action for press & hold within button timings
549549
} else {
550550
Button.press_counter[button_index] = (Button.window_timer[button_index]) ? Button.press_counter[button_index] +1 : 1;
551-
Button.window_timer[button_index] = loops_per_second / 2; // 0.5 second multi press window
551+
// Button.window_timer[button_index] = (Button.press_counter[button_index]==1) ? loops_per_second / 2 : loops_per_second; // 0.5 second multi press window after 1st press, 1s afterwards
552+
Button.window_timer[button_index] = (loops_per_second >> 2) * 3; // 0.75 second multi press window
552553
}
553554
}
554555
blinks = 201;

0 commit comments

Comments
 (0)