summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Aumueller2008-07-30 00:20:06 +0200
committerGravatar Matt Colyer2008-07-30 21:26:59 -0700
commitdb67cbb96cd6e3c13363e050089d29a82f9142b3 (patch)
tree9217f4b29bb266cd04090865c584d2a806155a25
parent9e745d180199d39249305275bdc5242634671238 (diff)
downloadlibimobiledevice-db67cbb96cd6e3c13363e050089d29a82f9142b3.tar.gz
libimobiledevice-db67cbb96cd6e3c13363e050089d29a82f9142b3.tar.bz2
Added iPhone 3G USB product id.
Signed-off-by: Matt Colyer <matt@colyer.name>
-rw-r--r--src/iphone.c4
1 files changed, 2 insertions, 2 deletions
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() {
33 33
34 for (bus = busses; bus; bus = bus->next) { 34 for (bus = busses; bus; bus = bus->next) {
35 for (dev = bus->devices; dev; dev = dev->next) { 35 for (dev = bus->devices; dev; dev = dev->next) {
36 if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291)) { 36 if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292)) {
37 phone->__device = dev; 37 phone->__device = dev;
38 phone->device = usb_open(phone->__device); 38 phone->device = usb_open(phone->__device);
39 usb_reset(phone->device); 39 usb_reset(phone->device);
@@ -46,7 +46,7 @@ iPhone *get_iPhone() {
46 46
47 for (bus = busses; bus; bus = bus->next) { // do it again as per libusb documentation 47 for (bus = busses; bus; bus = bus->next) { // do it again as per libusb documentation
48 for (dev = bus->devices; dev; dev = dev->next) { 48 for (dev = bus->devices; dev; dev = dev->next) {
49 if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291)) { 49 if (dev->descriptor.idVendor == 0x05ac && (dev->descriptor.idProduct == 0x1290 || dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292)) {
50 phone->__device = dev; 50 phone->__device = dev;
51 phone->device = usb_open(phone->__device); 51 phone->device = usb_open(phone->__device);
52 usb_set_configuration(phone->device, 3); 52 usb_set_configuration(phone->device, 3);