Explorar o código

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

Keir Fraser %!s(int64=4) %!d(string=hai) anos
pai
achega
6ba314d25f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: