From 988c3f27ec2df32d548b8b6180928ba15ffd7276 Mon Sep 17 00:00:00 2001 From: Marco Massarelli Date: Thu, 18 Jan 2024 19:09:26 +0000 Subject: [PATCH] Invert behavior on back layer to maintain consistency --- ergogen/footprints/power_switch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ergogen/footprints/power_switch.js b/ergogen/footprints/power_switch.js index 66742a7..2f84c12 100644 --- a/ergogen/footprints/power_switch.js +++ b/ergogen/footprints/power_switch.js @@ -129,9 +129,9 @@ module.exports = { (pad "" smd rect (at 1.125 -3.65 ${270 + p.rot}) (size 1 0.8) (layers B.Cu B.Paste B.Mask)) (pad "" smd rect (at -1.085 3.65 ${270 + p.rot}) (size 1 0.8) (layers B.Cu B.Paste B.Mask)) (pad "" smd rect (at 1.125 3.65 ${270 + p.rot}) (size 1 0.8) (layers B.Cu B.Paste B.Mask)) - (pad 1 smd rect (at -1.735 -2.25 ${270 + p.rot}) (size 0.7 1.5) (layers B.Cu B.Paste B.Mask) ${p.invert_behavior ? '' : p.from.str}) + (pad 1 smd rect (at -1.735 -2.25 ${270 + p.rot}) (size 0.7 1.5) (layers B.Cu B.Paste B.Mask) ${p.invert_behavior ? p.from.str : ''}) (pad 2 smd rect (at -1.735 0.75 ${270 + p.rot}) (size 0.7 1.5) (layers B.Cu B.Paste B.Mask) ${p.to.str}) - (pad 3 smd rect (at -1.735 2.25 ${270 + p.rot}) (size 0.7 1.5) (layers B.Cu B.Paste B.Mask) ${p.invert_behavior ? p.from.str : ''}) + (pad 3 smd rect (at -1.735 2.25 ${270 + p.rot}) (size 0.7 1.5) (layers B.Cu B.Paste B.Mask) ${p.invert_behavior ? '' : p.from.str}) ` const common_end = ` (pad "" np_thru_hole circle (at 0.025 -1.5 ${90 + p.rot}) (size 0.9 0.9) (drill 0.9) (layers *.Cu *.Mask))