mlp8 4x3 footprint had pads in the wrong places
authorKeith Packard <keithp@keithp.com>
Mon, 28 Mar 2016 02:51:56 +0000 (19:51 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 28 Mar 2016 02:51:56 +0000 (19:51 -0700)
They were spaced too far from the center of the package and barely
touched the pads.

Signed-off-by: Keith Packard <keithp@keithp.com>
packages/mlp8-4x3.5c

index 2393d0e5b01a4e126be64901717564965eed07bd..5105c2e0a99b5a4dba0c33d364586838cbb9bc6a 100644 (file)
@@ -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));
 }