Commit efd8c441825c254191b977a28429e7699ec50d57

Con Kolivas 2013-10-07T20:35:42

Check for async transfer variants of error messages.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/usbutils.c b/usbutils.c
index 185155a..41f77d4 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -20,7 +20,10 @@
 
 #define NODEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
 			(err) == LIBUSB_ERROR_PIPE || \
-			(err) == LIBUSB_ERROR_OTHER)
+			(err) == LIBUSB_ERROR_OTHER || \
+			(err) == LIBUSB_TRANSFER_NO_DEVICE || \
+			(err) == LIBUSB_TRANSFER_STALL || \
+			(err) == LIBUSB_TRANSFER_ERROR)
 
 #define NOCONTROLDEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
 			(err) == LIBUSB_ERROR_OTHER)