Skip to content

Commit 012e1bc

Browse files
committed
fix(stm32variant): ensure GPIO file is the correct one
Example for U5, file was the one for "LPBAMLPGPIO1" Signed-off-by: Frederic Pillon <[email protected]>
1 parent af8bafc commit 012e1bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CI/update/stm32variant.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def parse_mcu_file():
188188
else:
189189
usb_inst["usb"] = inst.group(1)
190190
else:
191-
if gpiofile == "" and "GPIO" in s.attributes["Name"].value:
191+
if gpiofile == "" and s.attributes["Name"].value == "GPIO":
192192
gpiofile = s.attributes["Version"].value
193193

194194

0 commit comments

Comments
 (0)