aboutsummaryrefslogtreecommitdiff
path: root/src/ee/kicad
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-20 16:04:15 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-20 16:04:15 +0200
commit148ff60aa5a211292661e16ddba0f6fced85f372 (patch)
tree76b5722b3fda11538d93702d3424efbb9088ab03 /src/ee/kicad
parent9eba62ef1d6b4896de693976116f69a9692332d9 (diff)
downloadee-python-148ff60aa5a211292661e16ddba0f6fced85f372.tar.gz
ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.tar.bz2
ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.tar.xz
ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.zip
make_bom: Skipping fields without values.
Diffstat (limited to 'src/ee/kicad')
-rw-r--r--src/ee/kicad/make_bom.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ee/kicad/make_bom.py b/src/ee/kicad/make_bom.py
index 13b2157..5242832 100644
--- a/src/ee/kicad/make_bom.py
+++ b/src/ee/kicad/make_bom.py
@@ -56,7 +56,8 @@ def work(sch, out: Path, new_mode, pretty):
part.facts.add(sch_fact_types.footprint_name, footprint)
for f in c.named_fields:
- part.facts.add(sch_fact_types.field, "{}:{}".format(f.name, f.value))
+ if f.value is not None and len(f.value):
+ part.facts.add(sch_fact_types.field, "{}:{}".format(f.name, f.value))
parts.add_entry(part, True)