浏览代码

gw kryoflux: Final dummy Cell at end of stream so that OOB.Index is processed.

Keir Fraser 4 年之前
父节点
当前提交
096659de62
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scripts/greaseweazle/image/kryoflux.py

+ 3 - 0
scripts/greaseweazle/image/kryoflux.py

@@ -205,6 +205,9 @@ class KryoFlux(Image):
         # Generate a dummy flux just enough to get us there.
         if index_idx < len(index):
             emit(math.ceil(index[index_idx] - total) + 1)
+        # A dummy cell so that we definitely have *something* after the
+        # final OOB.Index, so that all parsers should register the Index.
+        emit(round(sck*12)) # 12us
 
         # Emit StreamEnd and EOF blocks to terminate the stream.
         dat += struct.pack('<2BH2I', Op.OOB, OOB.StreamEnd, 8, stream_idx, 0)