Skip to content

Commit

Permalink
update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Nov 27, 2023
1 parent a4bdb8a commit 68736f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unit-tests/py/rspy/acroname.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,13 @@ def connect( reset = False, req_spec = None ):
# Disconnection is needed after a reset command
hub.disconnect()

log.d("Reconnecting to Acroname")
result = None
for i in range(10):
result = hub.connectFromSpec(spec)
if result != brainstem.result.Result.NO_ERROR:
time.sleep(1)
else:
log.d('Reconnected to', spec)
log.d('reconnected')
return
raise RuntimeError("failed to reconnect to Acroname (result={})".format(result))

Expand Down

0 comments on commit 68736f2

Please sign in to comment.