Skip to content

Commit b53826c

Browse files
committed
Fix issue with duplicate pad names on a footprint
1 parent e594337 commit b53826c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InteractiveHtmlBom/core/ibom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def parse_modules(pcb_modules):
467467
# If no pads have common 'first' pad name then pick lexicographically.
468468
pin1_pads = [p for p in pads if 'pin1' in p[1]]
469469
if pads and not pin1_pads:
470-
pads = sorted(pads)
470+
pads = sorted(pads, key=lambda el: el[0])
471471
for pad_name, pad_dict in pads:
472472
if pad_name:
473473
pad_dict['pin1'] = 1

0 commit comments

Comments
 (0)