From a47e4a48666c6a97fb22b88cf8fb27d669f15d9b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 7 Oct 2013 20:35:42 +1100 Subject: [PATCH] Check for async transfer variants of error messages. --- usbutils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usbutils.c b/usbutils.c index 76249890..1aa8aaeb 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)