]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/dsi/pd.py
x2444m: Eliminate duplicate annotation class ID.
[libsigrokdecode.git] / decoders / dsi / pd.py
index 7ce95179f9aa7f9a254793b37229ecfcd235253f..c7cab8082c37f94e1e85bca09781572117e41833 100644 (file)
@@ -56,7 +56,6 @@ class Decoder(srd.Decoder):
 
     def reset(self):
         self.samplerate = None
-        self.samplenum = None
         self.edges, self.bits, self.ss_es_bits = [], [], []
         self.state = 'IDLE'
 
@@ -112,6 +111,7 @@ class Decoder(srd.Decoder):
             raise SamplerateError('Cannot decode without samplerate.')
         bit = 0
         while True:
+            # TODO: Come up with more appropriate self.wait() conditions.
             (self.dsi,) = self.wait()
             if self.options['polarity'] == 'active-high':
                 self.dsi ^= 1 # Invert.