sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Bug- False wire loop detection #646

Closed sambthompson closed 3 years ago

sambthompson commented 3 years ago

If I have two triple (or more) throw switches in a circuit, even if not connected to make a loop, I still get "wire loop detected". A simple example.

I know there's a common issue where two switches are arranged together alternately control a single output creates a loop - this is not that case - each switch is controlling its own output (lamps used in sample).

pfalstad commented 3 years ago

Fixed. It seems we didn’t handle the case where two of the switch terminals were connected by wires.

sambthompson commented 3 years ago

Thanks, Paul - fantastic response and application!