]> git.gag.com Git - hw/altusmetrum/commitdiff
Compute solder mask from process clearance in pad_mm_clear
authorKeith Packard <keithp@keithp.com>
Sun, 31 Mar 2013 09:36:27 +0000 (02:36 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 31 Mar 2013 09:40:40 +0000 (02:40 -0700)
Instead of using the user specified clearance (which is often zero),
use the process clearance to make sure there is sufficient solder mask
clearance around the pad. If the user really wants zero mask, they can
use pad_mm_clear_mask

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

index 704ae1b6149b3300b569a47fe1f2305fcf6d21dc..3fd921c35ee123e4847ffafb267c784ed0dbcd21 100644 (file)
@@ -115,7 +115,7 @@ namespace Footprint {
                        y2 = center_y + (height - width) / 2;
                }
 
-               real mask = thickness + clearance / 2;
+               real mask = thickness + process_clearance / 2;
 
                printf ("    Pad[");
                printf (" %6d %6d %6d %6d",