mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
Merge pull request #49 from derkling/fix-adb-connect
android: avoid connect for USB target
This commit is contained in:
commit
0c8f26763b
@ -265,6 +265,10 @@ def adb_get_device(timeout=None):
|
||||
|
||||
def adb_connect(device, timeout=None, attempts=MAX_ATTEMPTS):
|
||||
_check_env()
|
||||
# Connect is required only for ADB-over-IP
|
||||
if "." not in device:
|
||||
logger.debug('Device connected via USB, connect not required')
|
||||
return
|
||||
tries = 0
|
||||
output = None
|
||||
while tries <= attempts:
|
||||
|
Loading…
x
Reference in New Issue
Block a user