change type tether to usb
This commit is contained in:
parent
5a1992b52f
commit
e53e81ecc3
4
dump.py
4
dump.py
|
@ -53,7 +53,7 @@ def get_usb_iphone():
|
||||||
|
|
||||||
device = None
|
device = None
|
||||||
while device is None:
|
while device is None:
|
||||||
devices = [dev for dev in device_manager.enumerate_devices() if dev.type == 'tether']
|
devices = [dev for dev in device_manager.enumerate_devices() if dev.type == 'usb']
|
||||||
if len(devices) == 0:
|
if len(devices) == 0:
|
||||||
print 'Waiting for USB device...'
|
print 'Waiting for USB device...'
|
||||||
changed.wait()
|
changed.wait()
|
||||||
|
@ -328,4 +328,4 @@ if __name__ == '__main__':
|
||||||
if os.path.exists(PAYLOAD_PATH):
|
if os.path.exists(PAYLOAD_PATH):
|
||||||
shutil.rmtree(PAYLOAD_PATH)
|
shutil.rmtree(PAYLOAD_PATH)
|
||||||
|
|
||||||
sys.exit(exit_code)
|
sys.exit(exit_code)
|
||||||
|
|
Loading…
Reference in New Issue