Skip to content

Commit bf18e10

Browse files
committed
Remove roundrect when single side
1 parent 97c684a commit bf18e10

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

switch_mx.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ module.exports = {
160160
(pad "" np_thru_hole circle (at -2.54 -5.08 180) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask"))
161161
(pad "" np_thru_hole circle (at 3.81 -2.54 180) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask"))
162162
(pad "1" smd rect (at 7.085 -2.54 ${p.r}) (size 2.55 ${p.outer_pad_height}) (layers "F.Cu" "F.Paste" "F.Mask") ${p.from})
163-
(pad "2" smd roundrect
163+
(pad "2" smd ${p.reversible ? 'roundrect' : 'rect'}
164164
(at -5.842 -5.08 ${p.r})
165165
(size 2.55 2.5)
166-
(layers "F.Cu" "F.Paste" "F.Mask")
166+
(layers "F.Cu" "F.Paste" "F.Mask")${p.reversible ? `
167167
(roundrect_rratio 0)
168168
(chamfer_ratio 0.2)
169-
(chamfer bottom_right)
169+
(chamfer bottom_right)` : ''}
170170
${p.to}
171171
)
172172
`
@@ -175,13 +175,13 @@ module.exports = {
175175
(pad "" np_thru_hole circle (at 2.54 -5.08 180) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask"))
176176
(pad "" np_thru_hole circle (at -3.81 -2.54 180) (size 3 3) (drill 3) (layers "F&B.Cu" "*.Mask"))
177177
(pad "1" smd rect (at -7.085 -2.54 ${p.r}) (size 2.55 ${p.outer_pad_height}) (layers "B.Cu" "B.Paste" "B.Mask") ${p.from})
178-
(pad "2" smd roundrect
178+
(pad "2" smd ${p.reversible ? 'roundrect' : 'rect'}
179179
(at 5.842 -5.08 ${p.r})
180180
(size 2.55 2.5)
181-
(layers "B.Cu" "B.Paste" "B.Mask")
181+
(layers "B.Cu" "B.Paste" "B.Mask")${p.reversible ? `
182182
(roundrect_rratio 0)
183183
(chamfer_ratio 0.2)
184-
(chamfer bottom_left)
184+
(chamfer bottom_left)` : ''}
185185
${p.to})
186186
`
187187

0 commit comments

Comments
 (0)