Skip to content

Commit

Permalink
fix: repeater ic tiles skipping power off delay
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackStar8107 authored and MrTJP committed May 9, 2024
1 parent 2316087 commit d4da7de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void compute(ICSimulation ic, int[] inputs, int[] outputs) {
}
}
case 3 -> { // Waiting for timer to go low
if (readSchedTime(ic, inputs) >= readSchedTime(ic, inputs)) { // if timer expired
if (readSysTime(ic, inputs) >= readSchedTime(ic, inputs)) { // if timer expired
writeState(ic, outputs, (byte) 0); // go to state 0
writeOutput(ic, outputs, (byte) 0); // set output low
writeSchedTime(ic, outputs, -1); // disable timer
Expand Down

0 comments on commit d4da7de

Please sign in to comment.