From db67cbb96cd6e3c13363e050089d29a82f9142b3 Mon Sep 17 00:00:00 2001 From: Martin Aumueller Date: Wed, 30 Jul 2008 00:20:06 +0200 Subject: Added iPhone 3G USB product id. Signed-off-by: Matt Colyer --- src/iphone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/iphone.c') diff --git a/src/iphone.c b/src/iphone.c index 4ddb571..a8e2fcb 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -33,7 +33,7 @@ iPhone *get_iPhone() { for (bus = busses; bus; bus = bus->next) { for (dev = bus->devices; dev; dev = dev->next) { - if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291)) { + if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292)) { phone->__device = dev; phone->device = usb_open(phone->__device); usb_reset(phone->device); @@ -46,7 +46,7 @@ iPhone *get_iPhone() { for (bus = busses; bus; bus = bus->next) { // do it again as per libusb documentation for (dev = bus->devices; dev; dev = dev->next) { - if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291)) { + if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292)) { phone->__device = dev; phone->device = usb_open(phone->__device); usb_set_configuration(phone->device, 3); -- cgit v1.1-32-gdbae