]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/onewire_link/pd.py
Various PDs: Minor consistency fixes.
[libsigrokdecode.git] / decoders / onewire_link / pd.py
index 93cd51a1a1bdd984a4aa0536f18d42e8de93d225..c8d6cd75406d7dbc3c045113e226dd703bc7c10c 100644 (file)
@@ -254,10 +254,10 @@ class Decoder(srd.Decoder):
                     # Save the sample number for the rising edge.
                     self.rise = self.samplenum
                     self.putfr([2, ['Reset', 'Rst', 'R']])
-                    self.state = "WAIT FOR PRESENCE DETECT"
+                    self.state = 'WAIT FOR PRESENCE DETECT'
                 # Otherwise this is assumed to be a data bit.
                 else:
-                    self.state = "WAIT FOR FALLING EDGE"
+                    self.state = 'WAIT FOR FALLING EDGE'
             elif self.state == 'WAIT FOR PRESENCE DETECT':
                 # Sample presence status.
                 t = self.samplenum - self.rise