GetPipePropertiesV3 seems to require that the bVersion field of the
properties argument be set before calling it:
"Version of the structure. Currently kUSBEndpointPropertiesVersion3.
Need to set this when using this structure"
Not doing so results in an invalid argument error.
Closes #744
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
struct darwin_interface *cInterface;
#if InterfaceVersion >= 550
- IOUSBEndpointProperties pipeProperties;
+ IOUSBEndpointProperties pipeProperties = {.bVersion = kUSBEndpointPropertiesVersion3};
#else
/* None of the values below are used in libusb for bulk transfers */
uint8_t direction, number, interval;
-#define LIBUSB_NANO 11521
+#define LIBUSB_NANO 11522