浏览代码

edsk: Be more keen to clip extraneous data from Bad-CRC sectors.

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

+ 1 - 1
scripts/greaseweazle/image/edsk.py

@@ -370,7 +370,7 @@ class EDSK(Image):
 
 
                 # Some EDSK tracks with Bad CRC contain a raw dump following
                 # Some EDSK tracks with Bad CRC contain a raw dump following
                 # the DAM. This can usually be clipped.
                 # the DAM. This can usually be clipped.
-                if clippable > overhang:
+                if clippable and not bad_crc_clip_data:
                     bad_crc_clip_data = True
                     bad_crc_clip_data = True
                     continue
                     continue