Browse Source

MMQ fix nodev failure caused by changes

nfactor-troky
Kano 12 years ago
parent
commit
92fee70205
  1. 2
      driver-modminer.c
  2. 2
      usbutils.c

2
driver-modminer.c

@ -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;

2
usbutils.c

@ -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…
Cancel
Save