Browse Source

gw usb: Fix accounting for Index opcodes in the read-flux stream.

Keir Fraser 4 years ago
parent
commit
6ba314d25f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/greaseweazle/usb.py

+ 1 - 1
scripts/greaseweazle/usb.py

@@ -290,7 +290,7 @@ class Unit:
                     if opcode == FluxOp.Index:
                         val = _read_28bit()
                         index.append(ticks_since_index + ticks + val)
-                        ticks_since_index = -val
+                        ticks_since_index = -(ticks + val)
                     elif opcode == FluxOp.Space:
                         ticks += _read_28bit()
                     else: