Skip to content

Commit

Permalink
Fix virtual attribute detection for kicad nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1ck committed Jan 25, 2021
1 parent 6350be3 commit 7dacae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InteractiveHtmlBom/ecad/kicad.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ def footprint_to_component(footprint, extra_fields):
footprint_name = str(footprint.GetFPID().GetLibItemName())

attr = 'Normal'
if hasattr(pcbnew, 'MOD_EXCLUDE_FROM_BOM'):
if footprint.GetAttributes() & pcbnew.MOD_EXCLUDE_FROM_BOM:
if hasattr(pcbnew, 'FP_EXCLUDE_FROM_BOM'):
if footprint.GetAttributes() & pcbnew.FP_EXCLUDE_FROM_BOM:
attr = 'Virtual'
elif hasattr(pcbnew, 'MOD_VIRTUAL'):
if footprint.GetAttributes() == pcbnew.MOD_VIRTUAL:
Expand Down

0 comments on commit 7dacae0

Please sign in to comment.