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