]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk.py
sr/srd: Add Doxyfile to the tarball.
[libsigrokdecode.git] / decoders / nunchuk.py
index fbc03d4893081d3402b5eda4629183cc2124d102..d33074740eb50b4fb1fdea8137e89cbb3cffd947 100644 (file)
@@ -66,7 +66,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):
@@ -110,8 +110,6 @@ class Decoder(sigrok.Decoder):
         pass
 
     def decode(self, timeoffset, duration, data):
-        """Nintendo Wii Nunchuk decoder"""
-
         out = []
         o = {}