summaryrefslogtreecommitdiff
path: root/decoders/i2c.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/i2c.py')
-rw-r--r--decoders/i2c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/i2c.py b/decoders/i2c.py
index 8b8e665..e082763 100644
--- a/decoders/i2c.py
+++ b/decoders/i2c.py
@@ -148,7 +148,7 @@ class Sample():
def __init__(self, data):
self.data = data
def probe(self, probe):
- s = ord(self.data[probe / 8]) & (1 << (probe % 8))
+ s = self.data[probe / 8] & (1 << (probe % 8))
return True if s else False
def sampleiter(data, unitsize):