瀏覽代碼

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

Keir Fraser 4 年之前
父節點
當前提交
6ba314d25f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: