Explorar o código

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

Keir Fraser %!s(int64=4) %!d(string=hai) anos
pai
achega
7a5f377073
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
                 # the DAM. This can usually be clipped.
-                if clippable > overhang:
+                if clippable and not bad_crc_clip_data:
                     bad_crc_clip_data = True
                     continue