summaryrefslogtreecommitdiff
path: root/decoders/srd_usb.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-03 19:36:30 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-03 19:36:30 +0100
commitfb53ee5e242be7781b0d34a7d006c630095bcb72 (patch)
treec7febeb850194bb2b1f37f95e8cc93260ec0f762 /decoders/srd_usb.py
parentf6555179b242357f9c75b1f6178537de2001cd98 (diff)
downloadlibsigrokdecode-fb53ee5e242be7781b0d34a7d006c630095bcb72.tar.gz
libsigrokdecode-fb53ee5e242be7781b0d34a7d006c630095bcb72.zip
srd: *.py: Remove one incorrect ord() call.
While 'data' is of type 'bytes', 'data[0]' for example is of type 'int', thus the ord() there is neither needed nor correct anymore (yields an error).
Diffstat (limited to 'decoders/srd_usb.py')
-rw-r--r--decoders/srd_usb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/srd_usb.py b/decoders/srd_usb.py
index a223dbb..2db0158 100644
--- a/decoders/srd_usb.py
+++ b/decoders/srd_usb.py
@@ -46,7 +46,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):