Skip to content

Commit 6f86a47

Browse files
committed
ci(stm32variant): handle USB_OTG_HS1
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 3af9379 commit 6f86a47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CI/update/stm32variant.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ def parse_mcu_file():
221221
if "FS" in inst.group(1):
222222
usb_inst["otg_fs"] = inst.group(1)
223223
else:
224-
usb_inst["otg_hs"] = inst.group(1)
224+
if inst.group(1).endswith("HS1"):
225+
usb_inst["otg_hs"] = inst.group(1)[:-1]
226+
else:
227+
usb_inst["otg_hs"] = inst.group(1)
225228
else:
226229
usb_inst["usb"] = inst.group(1)
227230
else:

0 commit comments

Comments
 (0)