소스 검색

mfm: Small fix to decode_raw() logic

Keir Fraser 4 년 전
부모
커밋
91b4f664ce
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/greaseweazle/codec/ibm/mfm.py

+ 1 - 1
scripts/greaseweazle/codec/ibm/mfm.py

@@ -205,7 +205,7 @@ class IBM_MFM:
                 if abs(s.start - a.start) < 1000:
                     match = True
                     break
-            if match and list == self.sectors and s.crc != 0 and a.crc == 0:
+            if match and isinstance(a, Sector) and s.crc != 0 and a.crc == 0:
                 self.sectors = [x for x in self.sectors if x != a]
                 match = False
             if not match: