Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kbscan: Return early if debouncing #387

Merged
merged 1 commit into from
Jul 25, 2023
Merged

kbscan: Return early if debouncing #387

merged 1 commit into from
Jul 25, 2023

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Jul 24, 2023

A single timer is used for debouncing all keys, so there is no reason to perform any operations if the matrix is being debounced. Just return early and remove some of the convoluted logic.

@crawfxrd crawfxrd requested review from jackpot51 and a team July 24, 2023 23:25
A single timer is used for debouncing all keys, so there is no reason to
perform any operations if the matrix is being debounced. Just return
early and remove some of the convoluted logic.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Copy link

@XV-02 XV-02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see, key debounce is working as desired still, and I'm not seeing any evidence of issues with using multiple layers either. Looks good.

@jackpot51 jackpot51 merged commit 546458e into master Jul 25, 2023
41 checks passed
@jackpot51 jackpot51 deleted the debounce-ret-early branch July 25, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants