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:
Theo Arends 2020-03-02 21:32:16 +01:00 committed by GitHub
commit 25c2a6f639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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