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

nk3am: Remove blocking UP check #451

Merged
merged 1 commit into from
Mar 5, 2024
Merged

nk3am: Remove blocking UP check #451

merged 1 commit into from
Mar 5, 2024

Conversation

robin-nitrokey
Copy link
Member

Since this commit [0] that changed the threshold from 3 to 1, the blocking loop in the user presence check for the NK3AM does no longer have any functional effect. But it has undesired side effects, for example skipping the UI update for a second so that the blinking effect is not triggered, and delaying the handling of cancelled requests.

This patch removes the unnecessary blocking loop. The button implementation still requires 100 ticks to trigger a button press.

Fixes: #93

[0] 35dac8d

Since this commit [0] that changed the threshold from 3 to 1, the
blocking loop in the user presence check for the NK3AM does no longer
have any functional effect.  But it has undesired side effects, for
example skipping the UI update for a second so that the blinking effect
is not triggered, and delaying the handling of cancelled requests.

This patch removes the unnecessary blocking loop.  The button
implementation still requires 100 ticks to trigger a button press.

Fixes: #93

[0] 35dac8d
@robin-nitrokey robin-nitrokey merged commit 95fedf7 into main Mar 5, 2024
8 of 9 checks passed
@robin-nitrokey robin-nitrokey deleted the nk3am-button branch March 5, 2024 16:25
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.

NK3AM: LED should blink when prompting for the user input
3 participants