diff options
author | Matt Colyer | 2008-08-18 08:43:00 -0700 |
---|---|---|
committer | Matt Colyer | 2008-08-18 08:43:00 -0700 |
commit | 951d5ca00c2fc26231c2766939e1971febdbd7d9 (patch) | |
tree | d37f7ca3d455206a44f2859676c060f5d9caaf1b | |
parent | 8e82524e5506b5af6bc75fa040e101c840121eec (diff) | |
download | libimobiledevice-951d5ca00c2fc26231c2766939e1971febdbd7d9.tar.gz libimobiledevice-951d5ca00c2fc26231c2766939e1971febdbd7d9.tar.bz2 |
Removed USB reset, as it wasn't really necesary.
-rw-r--r-- | src/iphone.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/iphone.c b/src/iphone.c index 104418f..2bdb5c8 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -51,24 +51,6 @@ iPhone *get_iPhone() { usb_find_devices(); busses = usb_get_busses(); - 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 || - dev->descriptor.idProduct == 0x1292 - ) - ) { - phone->__device = dev; - phone->device = usb_open(phone->__device); - usb_reset(phone->device); - } - } - } - - phone->device = NULL; - phone->__device = NULL; - // Set the device configuration for (bus = busses; bus; bus = bus->next) { for (dev = bus->devices; dev; dev = dev->next) { |