Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
alexredko wants to merge 1 commit intousb4java:masterusb4java/usb4java-javax:masterfrom
alexredko:masteralexredko/usb4java-javax:masterCopy head branch name to clipboard
Open

Use maxPacketSize of Interface 0 for the buffer in getUsbStringDescriptor and getLanguages#18
alexredko wants to merge 1 commit intousb4java:masterusb4java/usb4java-javax:masterfrom
alexredko:masteralexredko/usb4java-javax:masterCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.