mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
libusb_control_transfer are meant to be endian specific, but host endianness so no conversion is needed.
This commit is contained in:
parent
7ef11e2b3d
commit
adb2ea672d
@ -2363,8 +2363,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, htole16(wValue), htole16(wIndex),
|
||||
(unsigned char *)buf, (uint16_t)siz,
|
||||
bRequest, wValue, wIndex, (unsigned char *)buf, (uint16_t)siz,
|
||||
timeout == DEVTIMEOUT ? usbdev->found->timeout : timeout);
|
||||
STATS_TIMEVAL(&tv_finish);
|
||||
USB_STATS(cgpu, &tv_start, &tv_finish, err, MODE_CTRL_WRITE, cmd, SEQ0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user