Skip to content

Commit f1e9e91

Browse files
committed
Improve ferrite bead warning messages
1 parent 853cfc8 commit f1e9e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generics/FerriteBead.zen

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ current = config_unit("current", Current, optional=True)
3131
# Backwards compatibility: if resistance is specified, use it as impedance
3232
if resistance:
3333
impedance = resistance
34-
warn("'resistance' is deprecated, use 'impedance' instead")
34+
warn("'resistance' is deprecated, use 'value' instead")
3535

3636
# Ensure we have an effective impedance
3737
if not impedance:
38-
error("FerriteBead requires either 'resistance' or 'impedance' to be specified")
38+
error("FerriteBead requires 'value' to be specified")
3939

4040
# Properties – combined and normalized
4141
properties = {

0 commit comments

Comments
 (0)