Skip to content
Permalink
Browse files

fped: mechanical holes had incorrect layers

- inst.c (inst_hole): set inst->u.hole.layers, not inst->u.pad.layers
- layer.c (mech_hole_layers): holes don't need solder paste
  • Loading branch information...
Werner Almesberger
Werner Almesberger committed Mar 24, 2011
1 parent 81a670b commit 4fb1be13f8e5225d5c679fccdc756f0934c2ee05
Showing with 2 additions and 3 deletions.
  1. +1 −1 eda/fped/inst.c
  2. +1 −2 eda/fped/layer.c
@@ -934,7 +934,7 @@ int inst_hole(struct obj *obj, struct coord a, struct coord b)
inst = add_inst(&hole_ops, ip_hole, a);
inst->obj = obj;
inst->u.hole.other = b;
inst->u.pad.layers = mech_hole_layers();
inst->u.hole.layers = mech_hole_layers();
find_inst(inst);
update_bbox(&inst->bbox, b);
propagate_bbox(inst);
@@ -91,8 +91,7 @@ enum pad_type layers_to_pad_type(layer_type layers)

layer_type mech_hole_layers(void)
{
return LAYER_PASTE_TOP | LAYER_PASTE_BOTTOM |
LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
return LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
}


0 comments on commit 4fb1be1

Please sign in to comment.
You can’t perform that action at this time.