Skip to content

Commit 9899862

Browse files
committed
Correct uvision exporter support check
1 parent 9968b54 commit 9899862

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/export/uvision/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ class Uvision(Exporter):
133133
@classmethod
134134
def is_target_supported(cls, target_name):
135135
target = TARGET_MAP[target_name]
136-
if not (set(target.supported_toolchains) and set(["ARM", "uARM"])):
136+
if not (set(target.supported_toolchains).intersection(
137+
set(["ARM", "uARM"]))):
137138
return False
138139
if not DeviceCMSIS.check_supported(target_name):
139140
return False

0 commit comments

Comments
 (0)