From f07a6c8fe6a41060ab097043b0811dbbef2878c1 Mon Sep 17 00:00:00 2001 From: Paul Falstad Date: Sun, 10 Nov 2024 19:25:09 -0800 Subject: [PATCH] fix getConnection for DPDT switches (#120) --- src/com/lushprojects/circuitjs1/client/DPDTSwitchElm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/lushprojects/circuitjs1/client/DPDTSwitchElm.java b/src/com/lushprojects/circuitjs1/client/DPDTSwitchElm.java index 9873f80a..3dc58ed7 100644 --- a/src/com/lushprojects/circuitjs1/client/DPDTSwitchElm.java +++ b/src/com/lushprojects/circuitjs1/client/DPDTSwitchElm.java @@ -167,7 +167,7 @@ int getVoltageSourceCount() { } boolean getConnection(int n1, int n2) { - return comparePair(n1, n2, 0, 1+position); + return comparePair(n1, n2, 0, 1+position) || comparePair(n1, n2, 3, 4+position); } boolean isWireEquivalent() { return true; }