From b4ba5e8385965a8b6ec7decd83ff7f07c9b364ec Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 28 May 2019 11:16:13 +0200 Subject: kicad-make-bom: Only write fields that actually are custom as custom field facts. --- src/ee/kicad/make_bom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ee/kicad/make_bom.py b/src/ee/kicad/make_bom.py index 6069fcc..de1412c 100644 --- a/src/ee/kicad/make_bom.py +++ b/src/ee/kicad/make_bom.py @@ -66,7 +66,7 @@ def work(sch, out: Path, project_uuid: UUID, new_mode, pretty): part.facts.add(sch_fact_types.footprint_name, footprint) for f in c.named_fields: - if f.value is not None and len(f.value): + if f.is_custom and f.value is not None and len(f.value): part.facts.add(sch_fact_types.make_custom_field_key(f.name), f.value) parts.add_entry(part, True) -- cgit v1.2.3