Skip to content

Commit 8c13013

Browse files
committed
Fix dnp detection for kicad variants
Fixes #551
1 parent 2e763ce commit 8c13013

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def get_footprint_fields(self, f):
7171
var_fields = variant.GetFields()
7272
for k in var_fields.keys():
7373
props[str(k)] = str(f.GetFieldShownText(str(k)))
74-
if variant.GetDNP():
75-
props["kicad_dnp"] = "DNP"
74+
props["kicad_dnp"] = "DNP" if variant.GetDNP() else ""
7675

7776
return props
7877

0 commit comments

Comments
 (0)