From 30c4a63d11d5e3982fc6acf7d307bbfd4f3e96ea Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Sat, 23 May 2009 17:00:05 -0700 Subject: [PATCH] Remove a call to init_specific_device as libiphone now uses phone uuids instead of usb bus and dev numbers. --- iPhoneSyncAgent.py | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/iPhoneSyncAgent.py b/iPhoneSyncAgent.py index 9f258e5..2cae5a4 100644 --- a/iPhoneSyncAgent.py +++ b/iPhoneSyncAgent.py @@ -24,14 +24,10 @@ class iPhoneSyncAgent(): def connect(self, bus=None, dev=None): self._phone = iPhone() - if bus and dev: - if not self._phone.init_specific_device(int(bus), int(dev)): - print "Couldn't connect to iPhone/iPod touch." - return False - else: - if not self._phone.init_device(): - print "Couldn't connect to iPhone/iPod touch." - return False + + if not self._phone.init_device(): + print "Couldn't connect to iPhone/iPod touch." + return False self._lckd = self._phone.get_lockdown_client() if not self._lckd: -- 1.5.6.3