From cf0df6e11ba1f638638f976bac7ad1f2a03f78ca Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Tue, 9 Jun 2015 11:51:39 -0500 Subject: [PATCH] Fixed runtime issue on mac --- mbed_lstools/lstools_darwin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mbed_lstools/lstools_darwin.py b/mbed_lstools/lstools_darwin.py index 456763f..5c179ed 100644 --- a/mbed_lstools/lstools_darwin.py +++ b/mbed_lstools/lstools_darwin.py @@ -63,9 +63,9 @@ def list_mbeds(self): if result[i]['mount_point']: # Deducing mbed-enabled TargetID based on available targetID definition DB. # If TargetID from USBID is not recognized we will try to check URL in mbed.htm - htm_target_id = self.get_mbed_htm_target_id(m['mount_point']) + htm_target_id = self.get_mbed_htm_target_id(result[i]['mount_point']) if htm_target_id: - result[i]['target_id_usb_id'] = m['target_id'] + result[i]['target_id_usb_id'] = result[i]['target_id'] result[i]['target_id'] = htm_target_id result[i]['platform_name'] = self.platform_name(htm_target_id[:4]) result[i]['target_id_mbed_htm'] = htm_target_id @@ -165,5 +165,3 @@ def target_id(self, usb_info): def platform_name(self, target_id): if target_id[:4] in self.manufacture_ids: return self.manufacture_ids[target_id[:4]] - -