mirror of https://github.com/arendst/Tasmota.git
Merge pull request #7845 from to-scho/hotfix/shutterbuttons_multipress_window_timing
extended multipress window from 0.5s to 0.75s
This commit is contained in:
commit
25c2a6f639
|
@ -548,7 +548,8 @@ void ShutterButtonHandler(void)
|
|||
Button.press_counter[button_index] = 99; // Remember to discard further action for press & hold within button timings
|
||||
} else {
|
||||
Button.press_counter[button_index] = (Button.window_timer[button_index]) ? Button.press_counter[button_index] +1 : 1;
|
||||
Button.window_timer[button_index] = loops_per_second / 2; // 0.5 second multi press window
|
||||
// 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
|
||||
Button.window_timer[button_index] = (loops_per_second >> 2) * 3; // 0.75 second multi press window
|
||||
}
|
||||
}
|
||||
blinks = 201;
|
||||
|
|
Loading…
Reference in New Issue