Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4fb1be1

Browse files
author
Werner Almesberger
committed
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
1 parent 81a670b commit 4fb1be1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎eda/fped/inst.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ int inst_hole(struct obj *obj, struct coord a, struct coord b)
934934
inst = add_inst(&hole_ops, ip_hole, a);
935935
inst->obj = obj;
936936
inst->u.hole.other = b;
937-
inst->u.pad.layers = mech_hole_layers();
937+
inst->u.hole.layers = mech_hole_layers();
938938
find_inst(inst);
939939
update_bbox(&inst->bbox, b);
940940
propagate_bbox(inst);

‎eda/fped/layer.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ enum pad_type layers_to_pad_type(layer_type layers)
9191

9292
layer_type mech_hole_layers(void)
9393
{
94-
return LAYER_PASTE_TOP | LAYER_PASTE_BOTTOM |
95-
LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
94+
return LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
9695
}
9796

9897

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /