Change LPH footprint to use just pins 1 and 2
authorKeith Packard <keithp@keithp.com>
Mon, 15 Jul 2013 22:25:20 +0000 (15:25 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 15 Jul 2013 22:25:20 +0000 (15:25 -0700)
No reason to label all four pins when they're internally connected

Signed-off-by: Keith Packard <keithp@keithp.com>
packages/switches/lph.5c

index 0921093d357ae363b1baeb873338126a2d0f54eb..e3e7b2e34fd030db88b7e6d5d67a18c591c58b6f 100644 (file)
@@ -29,9 +29,9 @@ element_start("lph");
 
 for (int y = 0; y < 2; y++) 
        for (int x = 0; x < 2; x++) {
-               int     pin = (x + y * 2) + 1;
+               int     pin = y + 1;
                string  pin_name = sprintf ("%d", pin);
-               string  options = pin == 1 ? "square" : "";
+               string  options = "";
                pin_mm_options (x * hole_space_x - hole_space_x/2, y * hole_space_y - hole_space_y/2, hole_diameter,
                                hole_copper, pin_name, pin_name, options);
        }