mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
usb_transfer_read should also not play with the endianness.
This commit is contained in:
parent
0177b41010
commit
fa059b3cba
@ -2345,7 +2345,7 @@ int _usb_transfer_read(struct cgpu_info *cgpu, uint8_t request_type, uint8_t bRe
|
||||
|
||||
STATS_TIMEVAL(&tv_start);
|
||||
err = libusb_control_transfer(usbdev->handle, request_type,
|
||||
bRequest, htole16(wValue), htole16(wIndex),
|
||||
bRequest, wValue, wIndex,
|
||||
(unsigned char *)buf, (uint16_t)bufsiz,
|
||||
timeout == DEVTIMEOUT ? usbdev->found->timeout : timeout);
|
||||
STATS_TIMEVAL(&tv_finish);
|
||||
|
Loading…
Reference in New Issue
Block a user