]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/spdif/pd.py
Add Avago ADNS-5020 optical mouse sensor decoder.
[libsigrokdecode.git] / decoders / spdif / pd.py
index 964638655b4c12fcdb05235a21673cb99cc1d4eb..e6977e26858725a55c6c1998a65a578b1099f513 100644 (file)
@@ -210,7 +210,7 @@ class Decoder(srd.Decoder):
             elif self.preamble == [2, 1, 1, 2]:
                 self.puty([1, ['Preamble B', 'B']])
             else:
-                self.puty([1, ['Unknown Preamble', 'Unkown Prea.', 'U']])
+                self.puty([1, ['Unknown Preamble', 'Unknown Prea.', 'U']])
             self.preamble = []
             self.seen_preamble = True
             self.bitcount = 0
@@ -226,7 +226,7 @@ class Decoder(srd.Decoder):
             data = pins[0]
 
             # Initialize self.olddata with the first sample value.
-            if self.olddata == None:
+            if self.olddata is None:
                 self.olddata = data
                 continue