Skip to content

Commit c53944a

Browse files
committed
fix(stm32variant): handle USB_OTG_FS1
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent ebe1457 commit c53944a

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 inst:
222222
if "OTG" in inst.group(1):
223223
if "FS" in inst.group(1):
224-
usb_inst["otg_fs"] = inst.group(1)
224+
if inst.group(1).endswith("FS1"):
225+
usb_inst["otg_fs"] = inst.group(1)[:-1]
226+
else:
227+
usb_inst["otg_fs"] = inst.group(1)
225228
else:
226229
if inst.group(1).endswith("HS1"):
227230
usb_inst["otg_hs"] = inst.group(1)[:-1]

0 commit comments

Comments
 (0)