Skip to content

Commit a346572

Browse files
authored
Merge pull request #19 from fpistm/Missing_AF_F1
Some AF for F1 are missing
2 parents 3078740 + fa4ff52 commit a346572

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/genpinmap/genpinmap_arduino.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ def get_gpio_af_numF1(xml, pintofind, iptofind):
100100
if iptofind in secondlevel:
101101
# m = IP node found
102102
#print (i, j, m.attributes.items())
103-
if m.hasChildNodes() == False:
104-
mygpioaf = 'AFIO_NONE'
105-
else:
106-
for p in m.childNodes:
107-
#p node 'RemapBlock'
103+
for p in m.childNodes:
104+
#p node 'RemapBlock'
105+
if p.nodeType == Node.ELEMENT_NODE and p.hasChildNodes() == False:
106+
mygpioaf += ' AFIO_NONE'
107+
else:
108108
for s in p.childNodes:
109109
if s.nodeType == Node.ELEMENT_NODE:
110110
#s node 'Specific parameter'

0 commit comments

Comments
 (0)