From cf9f537aaf5ec2ff7d3749647c6501fbbdf51540 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sat, 31 Oct 2009 19:14:36 +0100 Subject: Fix USB pid range check: was trying to claim all Apple devices --- daemon/usb-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/usb-linux.c b/daemon/usb-linux.c index 4a5711d..687e965 100644 --- a/daemon/usb-linux.c +++ b/daemon/usb-linux.c @@ -270,7 +270,7 @@ int usb_discover(void) } if(devdesc.idVendor != VID_APPLE) continue; - if((devdesc.idProduct < PID_RANGE_LOW) && + if((devdesc.idProduct < PID_RANGE_LOW) || (devdesc.idProduct > PID_RANGE_MAX)) continue; libusb_device_handle *handle; -- cgit v1.1-32-gdbae