Skip to content

Commit 7249fa8

Browse files
committed
fix connection_checker
1 parent 4db875d commit 7249fa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/connections/connection_checker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ function check_connections(type, final_trace, slot_size = 1, connections = null)
110110
for (let j = 1; j < connections.length; j++) {
111111
for (let k = 0; k < 4; k++) {
112112
const wire = connections[j].connections[k];
113+
let r1 = j;
114+
if (j > 0) r1 += offset;
113115
if (wires[wire]) {
114116
// next times that found a wire, connect the "end"
115117
// saved previously with this "end"
116-
mark(wires[wire][0], wires[wire][1], k, j, offset);
118+
mark(wires[wire][0], wires[wire][1], k, r1)
117119
wires[wire] = [k, j];
118120
} else {
119121
// first time that found a wire saves the "end"

0 commit comments

Comments
 (0)