Correct uvision exporter support check

pull/7302/head
Jimmy Brisson 2018-07-16 11:51:20 -05:00
parent 9968b547d9
commit 989986288f
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ class Uvision(Exporter):
@classmethod
def is_target_supported(cls, target_name):
target = TARGET_MAP[target_name]
if not (set(target.supported_toolchains) and set(["ARM", "uARM"])):
if not (set(target.supported_toolchains).intersection(
set(["ARM", "uARM"]))):
return False
if not DeviceCMSIS.check_supported(target_name):
return False