# 'range': (self.startsample, self.samplenum - 1),
# 'data': d, 'ann': None}
- o = {'data': "0x%02x" % d}
+ o = {'data': '0x%02x' % d}
# TODO: Simplify.
if self.state == self.FIND_ADDRESS and self.wr == 1:
o = ack = d = ''
# We should accept a list of samples and iterate...
- for sample in sampleiter(data["data"], self.unitsize):
+ for sample in sampleiter(data['data'], self.unitsize):
# TODO: Eliminate the need for ord().
s = ord(sample.data)
if out != []:
sigrok.put(out)
-# Use psyco (if available) as it results in huge performance improvements.
-try:
- import psyco
- psyco.bind(decode)
-except ImportError:
- pass
-
import sigrok