Skip to content

Commit

Permalink
MMQ must copy USB bus:device due to usbinfo change
Browse files Browse the repository at this point in the history
  • Loading branch information
kanoi committed Feb 2, 2013
1 parent 7388942 commit 8fbc4da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver-modminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ static bool modminer_detect_one(struct libusb_device *dev, struct usb_find_devic

tmp->device_path = strdup(devpath);
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
if (!added)
tmp->usbinfo.usbstat = modminer->usbinfo.usbstat;
Expand Down

0 comments on commit 8fbc4da

Please sign in to comment.