Allow both path seperator types in flash algo names

pull/10234/head
Jimmy Brisson 2019-03-27 08:56:46 -05:00
parent 4317f0b5f8
commit 12e5596627
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class DeviceUvision(DeviceCMSIS):
if not info["default"]:
continue
name = info['file_name']
name_reg = "\w*/([\w_]+)\.flm"
name_reg = "\w*[/\\\\]([\w_]+)\.flm"
m = re.search(name_reg, name.lower())
fl_name = m.group(1) if m else None
name_flag = "-FF" + str(fl_count) + fl_name