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

Detect max packet size, and emit zlp if a multiple of that #84

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

jamesmunns
Copy link
Owner

This fixes an issue where if the HOST sends a packet that is a multiple of the max packet size, nusb does NOT automatically send a ZLP (like I assumed it did).

We now detect the max packet size, and manually emit a ZLP when necessary.

@jamesmunns jamesmunns merged commit c8808db into main Jan 28, 2025
1 check passed
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.

1 participant