Skip to content

Commit 81c3aef

Browse files
committed
Fixed reference to global variable instead of input argument in parse_BoardFile
1 parent bcd8ebb commit 81c3aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/targets/STM32_gen_PeripheralPins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ def parse_pins():
11291129

11301130
def parse_BoardFile(fileName):
11311131
print(" * Board file: '%s'" % (fileName))
1132-
board_file = open(board_file_name, "r")
1132+
board_file = open(fileName, "r")
11331133
# IOC_PIN_pattern = re.compile(r'(P[A-I][\d]*).*\.([\w]*)=(.*)')
11341134
IOC_PIN_pattern = re.compile(r'(.*)\.([\w]*)=(.*)')
11351135
for line in board_file.readlines():

0 commit comments

Comments
 (0)