From b53826c2bdb1cadaa571ecb5742966d55ab121a6 Mon Sep 17 00:00:00 2001 From: qu1ck Date: Wed, 20 Feb 2019 13:33:20 -0800 Subject: [PATCH] Fix issue with duplicate pad names on a footprint --- InteractiveHtmlBom/core/ibom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InteractiveHtmlBom/core/ibom.py b/InteractiveHtmlBom/core/ibom.py index 669be860..2b610091 100644 --- a/InteractiveHtmlBom/core/ibom.py +++ b/InteractiveHtmlBom/core/ibom.py @@ -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