1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-04 19:11:53 +01:00

Merge pull request #49 from derkling/fix-adb-connect

android: avoid connect for USB target
This commit is contained in:
setrofim
2016-07-29 16:09:17 +01:00
committed by GitHub

View File

@@ -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: