summaryrefslogtreecommitdiff
path: root/gerbonara/cad/protoserve.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-29 23:11:29 +0200
committerjaseg <git@jaseg.de>2023-04-29 23:11:29 +0200
commit176252b564deb168a6c7823ce313aa0d7bba9095 (patch)
tree4e6b636018d485266fa72b12865d3a276f09acab /gerbonara/cad/protoserve.py
parentfdb07ea26ef1cb6732f7b6181c68d73f06200519 (diff)
downloadgerbonara-176252b564deb168a6c7823ce313aa0d7bba9095.tar.gz
gerbonara-176252b564deb168a6c7823ce313aa0d7bba9095.tar.bz2
gerbonara-176252b564deb168a6c7823ce313aa0d7bba9095.zip
Protoserve fixes, add doc to protoboard.py
Diffstat (limited to 'gerbonara/cad/protoserve.py')
-rw-r--r--gerbonara/cad/protoserve.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gerbonara/cad/protoserve.py b/gerbonara/cad/protoserve.py
index c425af7..8512ca5 100644
--- a/gerbonara/cad/protoserve.py
+++ b/gerbonara/cad/protoserve.py
@@ -97,8 +97,9 @@ def deserialize(obj, unit):
pitch = mil(float(obj.get('pitch', 2.54)))
hole_dia = mil(float(obj['hole_dia']))
via_drill = mil(float(obj['via_hole_dia']))
+ via_dia = mil(float(obj['via_dia']))
trace_width = mil(float(obj['trace_width']))
- return pb.PatternProtoArea(pitch, pitch, pb.PoweredProto(pitch, hole_dia, clearance, via_size=via_drill, trace_width=trace_width, unit=unit), unit=unit)
+ return pb.PatternProtoArea(pitch, pitch, pb.PoweredProto(pitch, hole_dia, clearance, via_size=via_drill, power_pad_dia=via_dia, trace_width=trace_width, unit=unit), unit=unit)
case 'flower':
pitch = mil(float(obj.get('pitch', 2.54)))