mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
MMQ must copy USB bus:device due to usbinfo change
This commit is contained in:
parent
7388942bbd
commit
8fbc4dade6
@ -210,6 +210,8 @@ static bool modminer_detect_one(struct libusb_device *dev, struct usb_find_devic
|
|||||||
|
|
||||||
tmp->device_path = strdup(devpath);
|
tmp->device_path = strdup(devpath);
|
||||||
tmp->usbdev = modminer->usbdev;
|
tmp->usbdev = modminer->usbdev;
|
||||||
|
tmp->usbinfo.bus_number = modminer->usbinfo.bus_number;
|
||||||
|
tmp->usbinfo.device_address = modminer->usbinfo.device_address;
|
||||||
// Only the first copy gets the already used stats
|
// Only the first copy gets the already used stats
|
||||||
if (!added)
|
if (!added)
|
||||||
tmp->usbinfo.usbstat = modminer->usbinfo.usbstat;
|
tmp->usbinfo.usbstat = modminer->usbinfo.usbstat;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user