diff options
Diffstat (limited to 'src/ee/kicad/to_bom.py')
-rw-r--r-- | src/ee/kicad/to_bom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ee/kicad/to_bom.py b/src/ee/kicad/to_bom.py index 62eb075..5c3d988 100644 --- a/src/ee/kicad/to_bom.py +++ b/src/ee/kicad/to_bom.py @@ -2,7 +2,7 @@ from typing import Iterable from xml.etree.ElementTree import Element from ee.kicad.model import * -__all__ = ["to_bom"] +__all__ = ["to_bom", "to_bom_xml"] def simple_element(parent, e, text): @@ -36,7 +36,7 @@ def comp(c: Component) -> Element: def to_bom(schematic: Schematic) -> Iterable[Component]: - return [c for c in sorted(schematic.components) if c.ref_type != "#PWR" and c.ref_type != "#FLG"] + return [c for c in sorted(schematic.components) if c.has_ref_num and c.ref_type != "#PWR" and c.ref_type != "#FLG"] def to_bom_xml(schematic: Schematic) -> Element: |