From 176252b564deb168a6c7823ce313aa0d7bba9095 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 29 Apr 2023 23:11:29 +0200 Subject: Protoserve fixes, add doc to protoboard.py --- gerbonara/cad/protoserve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gerbonara/cad/protoserve.py') 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))) -- cgit