mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
MMQ fix nodev failure caused by changes
This commit is contained in:
parent
7d35c6921e
commit
92fee70205
@ -214,7 +214,7 @@ static bool modminer_detect_one(struct libusb_device *dev, struct usb_find_devic
|
|||||||
added = true;
|
added = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
modminer = usb_free_cgpu(modminer);
|
modminer = usb_free_cgpu_devlock(modminer, !added);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -1401,7 +1401,7 @@ struct cgpu_info *usb_copy_cgpu(struct cgpu_info *orig)
|
|||||||
|
|
||||||
memcpy(&(copy->usbinfo), &(orig->usbinfo), sizeof(copy->usbinfo));
|
memcpy(&(copy->usbinfo), &(orig->usbinfo), sizeof(copy->usbinfo));
|
||||||
|
|
||||||
copy->usbinfo.nodev = (copy->usbdev != NULL);
|
copy->usbinfo.nodev = (copy->usbdev == NULL);
|
||||||
|
|
||||||
copy->usbinfo.devlock = orig->usbinfo.devlock;
|
copy->usbinfo.devlock = orig->usbinfo.devlock;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user