Skip to content

Commit 7713e02

Browse files
committed
Fix retargeting bug when using mbedls.json
A NamesError exception is caused because some variables are not defined. Changes the debug output. Fixes #268.
1 parent e3a2bd6 commit 7713e02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mbed_lstools/lstools_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ def list_mbeds(
158158
for f, v in details_txt.items()})
159159
try:
160160
device.update(self.retarget_data[device['target_id']])
161-
logger.debug("retargeting %s to %s",
162-
device['target_id'], mbeds[i])
161+
logger.debug("retargeting %s with %r",
162+
device['target_id'],
163+
self.retarget_data[device['target_id']])
163164
except KeyError:
164165
pass
165166
result.append(maybe_device)

0 commit comments

Comments
 (0)