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

Use maxPacketSize of Interface 0 for the buffer in getUsbStringDescriptor and getLanguages #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexredko
Copy link

We can use max buffer size obtained from descriptor.bMaxPacketSize0() instead of 256 in these methods because internally they call controlTransfer on interface #0.
This fixes #3 without manipulations with dirvers. Some devices require to use a buffer of size bMaxPacketSize0 only for control transfer.

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.

Overflow while getting descriptors
1 participant