The SET_IDLE request (bRequest 0x0a) have a bmRequestType of 0x21. Using
this request_type in libusb-rs DeviceHandle::read_control gets rejected
with an InvalidParam, because it's direction is not Direction::In, but
rather Direction::Out (when parsed as direction).
This Pull Request adds another condition to the request_type Mask-Check,
allowing SET_IDLE requests of request == 0x0a to pass through the check
with Direction::Out set.
basically because all the times i looked through the rust und c sources and the rust and c documentations, i never realized this function existed :D
Thank you and don't mind me :)
The SET_IDLE request (bRequest 0x0a) have a bmRequestType of 0x21. Using this request_type in libusb-rs DeviceHandle::read_control gets rejected with an InvalidParam, because it's direction is not Direction::In, but rather Direction::Out (when parsed as direction).
This Pull Request adds another condition to the request_type Mask-Check, allowing SET_IDLE requests of
request == 0x0a
to pass through the check with Direction::Out set.