Skip to content

Throttle usb retries.#1544

Merged
kareltucek merged 4 commits into
masterfrom
usb_retry_throttle
May 17, 2026
Merged

Throttle usb retries.#1544
kareltucek merged 4 commits into
masterfrom
usb_retry_throttle

Conversation

@kareltucek
Copy link
Copy Markdown
Collaborator

@kareltucek kareltucek commented May 8, 2026

Changelog:

  • fix: don't clog usb hubs by too fast usb retries.
  • fix: in case of failed report sends, always send up-to-date state once the connection is alive again.
  • fix: change resending logic to allow up to 1024ms long usb hub stalls without loosing reports.

@kareltucek
Copy link
Copy Markdown
Collaborator Author

Also, when giving up, we should still make the keyboard send some state once the connection is alive. This way, we loose some keystrokes pressed along the way, but keys should not get stuck due to dropped report.

@kareltucek
Copy link
Copy Markdown
Collaborator Author

Actually added logic to allow up to 1024ms stalls without freezing up the keyboard.

@kareltucek kareltucek merged commit 8c36294 into master May 17, 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.

1 participant