Skip to content

Commit

Permalink
Fix issue with duplicate pad names on a footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1ck committed Feb 20, 2019
1 parent e594337 commit b53826c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InteractiveHtmlBom/core/ibom.py
Expand Up @@ -467,7 +467,7 @@ def parse_modules(pcb_modules):
# If no pads have common 'first' pad name then pick lexicographically.
pin1_pads = [p for p in pads if 'pin1' in p[1]]
if pads and not pin1_pads:
pads = sorted(pads)
pads = sorted(pads, key=lambda el: el[0])
for pad_name, pad_dict in pads:
if pad_name:
pad_dict['pin1'] = 1
Expand Down

0 comments on commit b53826c

Please sign in to comment.