} else if (!cur && !prev) { // --- is still pressed ---
uint16_t duration = jiffies - button_start[button];
- if (duration > 80) {
+ if (duration > 160) {
set_status_led(button, on1_pattern);
// acknowledge long press
}
} else if (cur && !prev) { // --- just released ---
uint16_t duration = jiffies - button_start[button];
- if (duration > 6 && duration < 30) {
+ if (duration > 6 && duration < 60) {
short_press(button);
- } else if (duration > 80) {
+ } else if (duration > 160) {
set_status_led(button, NULL);
long_press(button);
}