Skip to content

Commit f076b73

Browse files
committed
Merge pull request #14 from bridadan/mac-fix
Fixed runtime issue on mac
2 parents 0683fb4 + cf0df6e commit f076b73

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mbed_lstools/lstools_darwin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def list_mbeds(self):
6363
if result[i]['mount_point']:
6464
# Deducing mbed-enabled TargetID based on available targetID definition DB.
6565
# If TargetID from USBID is not recognized we will try to check URL in mbed.htm
66-
htm_target_id = self.get_mbed_htm_target_id(m['mount_point'])
66+
htm_target_id = self.get_mbed_htm_target_id(result[i]['mount_point'])
6767
if htm_target_id:
68-
result[i]['target_id_usb_id'] = m['target_id']
68+
result[i]['target_id_usb_id'] = result[i]['target_id']
6969
result[i]['target_id'] = htm_target_id
7070
result[i]['platform_name'] = self.platform_name(htm_target_id[:4])
7171
result[i]['target_id_mbed_htm'] = htm_target_id
@@ -165,5 +165,3 @@ def target_id(self, usb_info):
165165
def platform_name(self, target_id):
166166
if target_id[:4] in self.manufacture_ids:
167167
return self.manufacture_ids[target_id[:4]]
168-
169-

0 commit comments

Comments
 (0)