# HG changeset patch # User Mychaela Falconia # Date 1454292850 0 # Node ID f673b6ad2a78a3d371a205f6663817ee0a0514f1 # Parent 959df5ddf7a2df63cc171318c70fa370fa3523a8 pads2gpcb: soldermask delta and clearance setting moved to variables diff -r 959df5ddf7a2 -r f673b6ad2a78 pads2gpcb/decals.c --- a/pads2gpcb/decals.c Mon Feb 01 02:09:25 2016 +0000 +++ b/pads2gpcb/decals.c Mon Feb 01 02:14:10 2016 +0000 @@ -18,9 +18,6 @@ static int num_silk_lines; static int num_silk_arcs; -#define SOLDERMASK_DELTA (600 * 254) -#define CLEARANCE_SETTING (2000 * 254) - static void enter_decal() { @@ -385,8 +382,8 @@ return(-1); } pin->thickness = pin->shape.short_dim; - pin->clearance = CLEARANCE_SETTING; - pin->mask = pin->thickness + SOLDERMASK_DELTA; + pin->clearance = clearance_setting; + pin->mask = pin->thickness + soldermask_delta; pin->end2 = pin->end1; if (!pin->shape.elongated) return(0); diff -r 959df5ddf7a2 -r f673b6ad2a78 pads2gpcb/globals.c --- a/pads2gpcb/globals.c Mon Feb 01 02:09:25 2016 +0000 +++ b/pads2gpcb/globals.c Mon Feb 01 02:14:10 2016 +0000 @@ -1,4 +1,6 @@ int input_units_global, input_units_current; +long soldermask_delta = 600 * 254; +long clearance_setting = 2000 * 254; struct part_decal *part_decal_list; struct part_type *part_type_list; struct part_instance *part_inst_list; diff -r 959df5ddf7a2 -r f673b6ad2a78 pads2gpcb/globals.h --- a/pads2gpcb/globals.h Mon Feb 01 02:09:25 2016 +0000 +++ b/pads2gpcb/globals.h Mon Feb 01 02:14:10 2016 +0000 @@ -1,5 +1,6 @@ /* globals.c */ extern int input_units_global, input_units_current; +extern long soldermask_delta, clearance_setting; extern struct part_decal *part_decal_list; extern struct part_type *part_type_list; extern struct part_instance *part_inst_list;