Skip to content

Secondary Role: Fixed a bug where positive safety margin did not work#1487

Merged
kareltucek merged 1 commit intoUltimateHackingKeyboard:masterfrom
firngrod:firngrod/positive_safety_margin_bug
Feb 12, 2026
Merged

Secondary Role: Fixed a bug where positive safety margin did not work#1487
kareltucek merged 1 commit intoUltimateHackingKeyboard:masterfrom
firngrod:firngrod/positive_safety_margin_bug

Conversation

@firngrod
Copy link
Contributor

Fixes #1486


// now we want to trigger secondary, but are we allowed?
// handle safety margin part 2: wait for the safety margin?
const bool safetyWaitForRelease = safetyBlockSecondary && dualRoleRelease == NULL;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, the check for no dual role key release should be redundant here. If we had one, we would have reached line 176

Copy link
Collaborator

Choose a reason for hiding this comment

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

Code robustness and readability say that it is fine and probably preferred :-).

@kareltucek kareltucek merged commit 931993d into UltimateHackingKeyboard:master Feb 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Secondary roles with positive safety margin

2 participants