1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

libusb_control_transfer 16 bit words are endian specific.

This commit is contained in:
Con Kolivas 2013-05-16 12:38:48 +10:00
parent 3336880e3b
commit 0a15beb742

View File

@ -2071,7 +2071,7 @@ int _usb_transfer(struct cgpu_info *cgpu, uint8_t request_type, uint8_t bRequest
STATS_TIMEVAL(&tv_start);
err = libusb_control_transfer(usbdev->handle, request_type,
bRequest, wValue, wIndex, NULL, 0,
bRequest, htole16(wValue), htole16(wIndex), NULL, 0,
timeout == DEVTIMEOUT ? usbdev->found->timeout : timeout);
STATS_TIMEVAL(&tv_finish);
USB_STATS(cgpu, &tv_start, &tv_finish, err, cmd, SEQ0);