1
0
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:
Kano 2013-06-10 21:40:21 +10:00
parent 7d35c6921e
commit 92fee70205
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ static bool modminer_detect_one(struct libusb_device *dev, struct usb_find_devic
added = true;
}
modminer = usb_free_cgpu(modminer);
modminer = usb_free_cgpu_devlock(modminer, !added);
return true;

View File

@ -1401,7 +1401,7 @@ struct cgpu_info *usb_copy_cgpu(struct cgpu_info *orig)
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;