From b6e197667f5c94edca5f6617b897cf9b879e4a2a Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 23 Sep 2009 13:23:22 +0200 Subject: Match a range of supported USB IDs and make iPod Touch 64GB work --- daemon/usb-linux.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'daemon/usb-linux.c') diff --git a/daemon/usb-linux.c b/daemon/usb-linux.c index 6f25ed4..f1be612 100644 --- a/daemon/usb-linux.c +++ b/daemon/usb-linux.c @@ -274,11 +274,8 @@ static int usb_discover(void) } if(devdesc.idVendor != VID_APPLE) continue; - if( (devdesc.idProduct != PID_IPHONE2G) && - (devdesc.idProduct != PID_ITOUCH1G) && - (devdesc.idProduct != PID_IPHONE3G) && - (devdesc.idProduct != PID_ITOUCH2G) && - (devdesc.idProduct != PID_IPHONE3GS)) + if((devdesc.idProduct < PID_RANGE_LOW) && + (devdesc.idProduct > PID_RANGE_MAX)) continue; libusb_device_handle *handle; usbmuxd_log(LL_INFO, "Found new device with v/p %04x:%04x at %d-%d", devdesc.idVendor, devdesc.idProduct, bus, address); -- cgit v1.1-32-gdbae