]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mx25lxx05d/pd.py
All PDs: Minor whitespace and consistency fixes.
[libsigrokdecode.git] / decoders / mx25lxx05d / pd.py
index a6c72d8854e54fbd7034147fe41c045502f62742..2222c3773ca631a47f608edc24684dd9312c8f30 100644 (file)
@@ -360,7 +360,7 @@ class Decoder(srd.Decoder):
         self.ss, self.es = ss, es
 
         # If we encountered a known chip command, enter the resp. state.
-        if self.state == None:
+        if self.state is None:
             self.state = mosi
             self.cmdstate = 1
 
@@ -372,4 +372,3 @@ class Decoder(srd.Decoder):
         else:
             self.putx([24, ['Unknown command: 0x%02x' % mosi]])
             self.state = None
-