Skip to content

Commit 28ac288

Browse files
authored
Merge pull request ARMmbed#6000 from daid/patch-1
Prevent detect_targets.py tool script from crashing on known targets
2 parents 984cc1a + e7839f1 commit 28ac288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/detect_targets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main():
8080

8181
count = 0
8282
for mut in muts.values():
83-
if re.match(mcu_filter, mut['mcu']):
83+
if re.match(mcu_filter, mut['mcu'] or "Unknown"):
8484
interface_version = get_interface_version(mut['disk'])
8585
print("")
8686
print("[mbed] Detected %s, port %s, mounted %s, interface "

0 commit comments

Comments
 (0)