1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Add the libusb control setup size offset for control writes.

This commit is contained in:
Con Kolivas 2013-10-15 00:13:06 +11:00
parent 91d1d104d1
commit e6280c85d2

View File

@ -2719,7 +2719,7 @@ static int usb_control_transfer(libusb_device_handle *dev_handle, uint8_t bmRequ
init_usb_transfer(&ut);
if (!receive)
memcpy(buf, buffer, wLength);
memcpy(buf + LIBUSB_CONTROL_SETUP_SIZE, buffer, wLength);
libusb_fill_control_setup(buf, bmRequestType, bRequest, wValue,
wIndex, wLength);
libusb_fill_control_transfer(ut.transfer, dev_handle, buf, transfer_callback,