From: Keith Packard Date: Mon, 28 Mar 2016 02:51:56 +0000 (-0700) Subject: mlp8 4x3 footprint had pads in the wrong places X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a20af67fcc34dfb5fdbf7b5a0ebc03a51ca4dbbe;p=hw%2Faltusmetrum mlp8 4x3 footprint had pads in the wrong places They were spaced too far from the center of the package and barely touched the pads. Signed-off-by: Keith Packard --- diff --git a/packages/mlp8-4x3.5c b/packages/mlp8-4x3.5c index 2393d0e..5105c2e 100644 --- a/packages/mlp8-4x3.5c +++ b/packages/mlp8-4x3.5c @@ -54,7 +54,7 @@ real pad_top(real x, real y, int n) { real w_pad = pad_width + pad_side * 2; real h_pad = pad_height + pad_outside + pad_inside; real x_pad = x; - real y_pad = y - pad_outside + h_pad/2; + real y_pad = y + pad_outside - h_pad/2; pad_mm(x_pad, y_pad, w_pad, h_pad, sprintf("%d", n), sprintf("%d", n)); } @@ -63,7 +63,7 @@ real pad_bottom(real x, real y, int n) { real w_pad = pad_width + pad_side * 2; real h_pad = pad_height + pad_outside + pad_inside; real x_pad = x; - real y_pad = y - pad_height - pad_inside + h_pad/2; + real y_pad = y - pad_outside + h_pad/2; pad_mm(x_pad, y_pad, w_pad, h_pad, sprintf("%d", n), sprintf("%d", n)); }