Skip to content

Commit

Permalink
fix #195
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa0128 committed Aug 9, 2023
1 parent 821d243 commit fe1ab51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solox/public/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def getDeviceIds(self):
Ids = list(os.popen(f"{self.adb} devices").readlines())
deviceIds = []
for i in range(1, len(Ids) - 1):
output = re.findall(r'^[\w\d.:-]+\t[\w]+$', Ids[i])[0]
id, state = str(output).split('\t')
id, state = Ids[i].strip().split('\t')
if state == 'device':
logger.info('debug')
deviceIds.append(id)
return deviceIds

Expand Down

0 comments on commit fe1ab51

Please sign in to comment.