Skip to content

Commit 89fb968

Browse files
esaruohoclaude
andcommitted
Fix circuit load error and remove unnecessary submenu
- Add missing inputCount (4) to VCVS element in lfr.txt, which caused a NumberFormatException and silently skipped the element - Remove submenu wrapper from setuplist.txt -- a single circuit does not need its own submenu Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2bea633 commit 89fb968

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/com/lushprojects/circuitjs1/public/circuits/lfr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ w 464 368 560 368 0
88
w 560 368 560 320 0
99
g 464 368 464 400 0 0
1010
R 464 240 464 176 0 1 40 5 0 0 0.5
11-
212 624 256 640 256 46 lastoutput\p(a-b)^2/(.0001*1000*(d-c)\p.00000001)*timestep
11+
212 624 256 640 256 46 4 lastoutput\p(a-b)^2/(.0001*1000*(d-c)\p.00000001)*timestep
1212
c 720 288 720 256 2 0.00009999999999999 2.035051474979456 4.01
1313
w 624 320 608 320 0
1414
w 608 320 608 400 0

src/com/lushprojects/circuitjs1/public/setuplist.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,7 @@ ccdiff.txt Current Differentiator
436436
ccint.txt Current Integrator
437437
ccitov.txt Current-Controlled Voltage Source
438438
-
439-
+Loss-Free Resistor
440439
lfr.txt Loss-Free Resistor
441-
-
442440
+Spark Gap
443441
spark-sawtooth.txt Sawtooth Generator
444442
tesla.txt Tesla Coil

0 commit comments

Comments
 (0)