def __init__(self, **kwargs):
self.packets = [] # Local cache of I²C packets
def __init__(self, **kwargs):
self.packets = [] # Local cache of I²C packets
# Grab I²C packets into a local cache, until an I²C STOP condition
# packet comes along. At some point before that STOP condition, there
# Grab I²C packets into a local cache, until an I²C STOP condition
# packet comes along. At some point before that STOP condition, there
# We're never seen this slave, add a new stream.
self.slaves.append(databyte)
# We're never seen this slave, add a new stream.
self.slaves.append(databyte)
- self.out_proto.append(self.register(srd.OUTPUT_PYTHON,
- proto_id='i2c-%s' % hex(databyte)))
+ self.out_python.append(self.register(srd.OUTPUT_PYTHON,
+ proto_id='i2c-%s' % hex(databyte)))
- self.put(p[0], p[1], self.out_proto[self.stream], p[2])
+ self.put(p[0], p[1], self.out_python[self.stream], p[2])