# Grab I2C packets into a local cache, until an I2C STOP condition
# packet comes along. At some point before that STOP condition, there
# will have been an ADDRESS READ or ADDRESS WRITE which contains the
# Grab I2C packets into a local cache, until an I2C STOP condition
# packet comes along. At some point before that STOP condition, there
# will have been an ADDRESS READ or ADDRESS WRITE which contains the
# 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.add(srd.OUTPUT_PROTO,
- 'i2c-%s' % hex(databyte)))
+ self.out_proto.append(self.register(srd.OUTPUT_PYTHON,
+ proto_id='i2c-%s' % hex(databyte)))