diff options
| author | 2009-09-23 13:23:22 +0200 | |
|---|---|---|
| committer | 2009-09-23 13:23:22 +0200 | |
| commit | b6e197667f5c94edca5f6617b897cf9b879e4a2a (patch) | |
| tree | 769b016e87a3764e22014739f2294b1054219171 /daemon/usb-linux.c | |
| parent | a93c66e2bff0065ad2ac93998048f065e51a784c (diff) | |
| download | usbmuxd-b6e197667f5c94edca5f6617b897cf9b879e4a2a.tar.gz usbmuxd-b6e197667f5c94edca5f6617b897cf9b879e4a2a.tar.bz2 | |
Match a range of supported USB IDs and make iPod Touch 64GB work
Diffstat (limited to 'daemon/usb-linux.c')
| -rw-r--r-- | daemon/usb-linux.c | 7 |
1 files changed, 2 insertions, 5 deletions
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) | |||
| 274 | } | 274 | } |
| 275 | if(devdesc.idVendor != VID_APPLE) | 275 | if(devdesc.idVendor != VID_APPLE) |
| 276 | continue; | 276 | continue; |
| 277 | if( (devdesc.idProduct != PID_IPHONE2G) && | 277 | if((devdesc.idProduct < PID_RANGE_LOW) && |
| 278 | (devdesc.idProduct != PID_ITOUCH1G) && | 278 | (devdesc.idProduct > PID_RANGE_MAX)) |
| 279 | (devdesc.idProduct != PID_IPHONE3G) && | ||
| 280 | (devdesc.idProduct != PID_ITOUCH2G) && | ||
| 281 | (devdesc.idProduct != PID_IPHONE3GS)) | ||
| 282 | continue; | 279 | continue; |
| 283 | libusb_device_handle *handle; | 280 | libusb_device_handle *handle; |
| 284 | usbmuxd_log(LL_INFO, "Found new device with v/p %04x:%04x at %d-%d", devdesc.idVendor, devdesc.idProduct, bus, address); | 281 | usbmuxd_log(LL_INFO, "Found new device with v/p %04x:%04x at %d-%d", devdesc.idVendor, devdesc.idProduct, bus, address); |
