Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mbed_lstools/lstools_win7.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ def get_mbeds(self):
for mbed in self.get_mbed_devices():
mountpoint = re.match('.*\\\\(.:)$', mbed[0]).group(1)
# TargetID is a hex string with 10-48 chars
tid = re.search('[&#]([0-9A-Za-z]{10,48})[&#]', mbed[1]).group(1)
m = re.search('[&#]([0-9A-Za-z]{10,48})[&#]', mbed[1])
if not m:
continue
tid = m.group(1)
mbeds += [(mountpoint, tid)]
self.debug(self.get_mbeds.__name__, (mountpoint, tid))
return mbeds
Expand Down