Allow bulk transfer type in addition to interrupt #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
More careful checking of the endpoint attributes to look only at the bits indicating transfer type.
A little more paranoia while checking the endpoint address direction as well. Not assuming non-IN is OUT now.
Caution: I really don't know what I'm doing. This is working for me, with my one device (Zebra label printer) on Windows 11 with the WinUSB driver. I'll be doing further testing on Ubuntu soon with that same printer.
FWIW, a quick glance here gives me hope that it is reasonable to enable bulk transfer: https://github.com/libusb/libusb/blob/37dee8f9dd429558e4d5bc4a804ab586abe7262a/examples/xusb.c#L911