diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-28 11:16:13 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-28 11:16:13 +0200 |
commit | b4ba5e8385965a8b6ec7decd83ff7f07c9b364ec (patch) | |
tree | bbfd3d0700675ea53089124ac124a5119a360d2a | |
parent | 57305c50931fee63833b4d6813f2af521362033f (diff) | |
download | ee-python-b4ba5e8385965a8b6ec7decd83ff7f07c9b364ec.tar.gz ee-python-b4ba5e8385965a8b6ec7decd83ff7f07c9b364ec.tar.bz2 ee-python-b4ba5e8385965a8b6ec7decd83ff7f07c9b364ec.tar.xz ee-python-b4ba5e8385965a8b6ec7decd83ff7f07c9b364ec.zip |
kicad-make-bom: Only write fields that actually are custom as custom
field facts.
-rw-r--r-- | src/ee/kicad/make_bom.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |