Commit 7ddb94d6964f2451d2e76f70b069dfdf2b3d4d6f

Con Kolivas 2013-11-25T23:47:43

A USB control error must be < 0

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index 5ab6e5e..6025fa8 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -23,7 +23,7 @@
 /* Timeout errors on writes are basically unrecoverable */
 #define WRITENODEV(err) ((err) != LIBUSB_SUCCESS)
 
-#define NOCONTROLDEV(err) ((err) != LIBUSB_SUCCESS)
+#define NOCONTROLDEV(err) ((err) < 0 && (err) != LIBUSB_SUCCESS)
 
 /*
  * WARNING - these assume DEVLOCK(cgpu, pstate) is called first and