]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/transitioncounter.py
srd: Remove decode() docstrings.
[libsigrokdecode.git] / decoders / transitioncounter.py
index 9a5641d682fd8e9d6436205c88c3698d6eedf7ee..846e9d982fda48361bcf295fe162a1ed88ed02a3 100644 (file)
@@ -24,7 +24,7 @@ class Sample():
     def __init__(self, data):
         self.data = data
     def probe(self, probe):
-        s = ord(self.data[int(probe / 8)]) & (1 << (probe % 8))
+        s = self.data[int(probe / 8)] & (1 << (probe % 8))
         return True if s else False
 
 def sampleiter(data, unitsize):
@@ -68,9 +68,6 @@ class Decoder(sigrok.Decoder):
         pass
 
     def decode(self, timeoffset, duration, data):
-        """Counts the low->high and high->low transitions in the specified
-           channel(s) of the signal."""
-
         # We should accept a list of samples and iterate...
         for sample in sampleiter(data, self.unitsize):