Skip to content

Commit 3800271

Browse files
committed
Add missing skip_bom config
1 parent e641581 commit 3800271

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

generics/Capacitor.zen

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ t_min = config_unit("t_min", Temperature, optional=True)
3030

3131
do_not_populate = config("do_not_populate", bool, default=False)
3232
exclude_from_bom = config("exclude_from_bom", bool, default=False)
33+
skip_bom = config("skip_bom", bool, default=False)
3334

3435
if do_not_populate:
3536
warn("do_not_populate is deprecated. Use dnp instead.", kind="deprecated.do_not_populate")
@@ -118,5 +119,5 @@ Component(
118119
args={"CVAL": str(value.value)},
119120
),
120121
dnp=do_not_populate,
121-
skip_bom=exclude_from_bom,
122+
skip_bom=skip_bom or exclude_from_bom,
122123
)

generics/Resistor.zen

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use_us_symbol = config("use_us_symbol", bool, default=False, optional=True)
2727

2828
do_not_populate = config("do_not_populate", bool, default=False)
2929
exclude_from_bom = config("exclude_from_bom", bool, default=False)
30+
skip_bom = config("skip_bom", bool, default=False)
3031

3132
if do_not_populate:
3233
warn("do_not_populate is deprecated. Use dnp instead.", kind="deprecated.do_not_populate")
@@ -114,5 +115,5 @@ Component(
114115
properties=properties,
115116
type="resistor",
116117
dnp=do_not_populate,
117-
skip_bom=exclude_from_bom,
118+
skip_bom=skip_bom or exclude_from_bom,
118119
)

0 commit comments

Comments
 (0)