Browse Source

Merge branch 'master' of github.com:ckolivas/cgminer

Con Kolivas 13 years ago
parent
commit
8c65897d1b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      usbutils.c

+ 5 - 1
usbutils.c

@@ -1567,8 +1567,12 @@ void usb_cleanup()
 	struct cgpu_info *cgpu;
 	struct cgpu_info *cgpu;
 	int i;
 	int i;
 
 
+	hotplug_time = 0;
+
+	nmsleep(10);
+
 	for (i = 0; i < total_devices; i++) {
 	for (i = 0; i < total_devices; i++) {
-		cgpu = get_devices(i);
+		cgpu = devices[i];
 		switch (cgpu->drv->drv_id) {
 		switch (cgpu->drv->drv_id) {
 			case DRIVER_BFLSC:
 			case DRIVER_BFLSC:
 			case DRIVER_BITFORCE:
 			case DRIVER_BITFORCE: