summaryrefslogtreecommitdiff
path: root/decoders/nunchuk.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/nunchuk.py')
-rw-r--r--decoders/nunchuk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py
index fbc03d4..cc1252c 100644
--- a/decoders/nunchuk.py
+++ b/decoders/nunchuk.py
@@ -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):