Skip to content

Commit

Permalink
Merge pull request #160 from c1728p9/fix_mbedls_on_mac
Browse files Browse the repository at this point in the history
Fix mbedls on mac
  • Loading branch information
c1728p9 authored Sep 16, 2016
2 parents 7b563e6 + b85d8e0 commit 8bfea8d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/daplink_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,14 @@ def _update_board_info(self, exptn_on_fail=True):
return False
self.unique_id, self.serial_port, self.mount_point = endpoints
# Serial port can be missing
assert self.unique_id is not None
assert self.mount_point is not None
if self.unique_id is None:
if exptn_on_fail:
raise Exception("Mount point is null")
return False
if self.mount_point is None:
if exptn_on_fail:
raise Exception("Mount point is null")
return False
self.board_id = int(self.unique_id[0:4], 16)
self._hic_id = int(self.unique_id[-8:], 16)

Expand Down

0 comments on commit 8bfea8d

Please sign in to comment.