Skip to content

Commit

Permalink
fix getConnection for DPDT switches (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalstad committed Nov 11, 2024
1 parent 1e716d2 commit f07a6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/lushprojects/circuitjs1/client/DPDTSwitchElm.java
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit f07a6c8

Please sign in to comment.