Procházet zdrojové kódy

mfm: Small fix to decode_raw() logic

Keir Fraser před 4 roky
rodič
revize
91b4f664ce
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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: