mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
extended multipress window from 0.5s to 0.75s
This commit is contained in:
parent
0ce89e53e3
commit
543f83218e
@ -548,7 +548,8 @@ void ShutterButtonHandler(void)
|
|||||||
Button.press_counter[button_index] = 99; // Remember to discard further action for press & hold within button timings
|
Button.press_counter[button_index] = 99; // Remember to discard further action for press & hold within button timings
|
||||||
} else {
|
} else {
|
||||||
Button.press_counter[button_index] = (Button.window_timer[button_index]) ? Button.press_counter[button_index] +1 : 1;
|
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;
|
blinks = 201;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user