self.stream = -1 # Current output stream
self.streamcount = 0 # Number of created output streams
- def start(self, metadata):
+ def start(self):
self.out_proto = []
def report(self):
# 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)))
self.stream = self.streamcount
self.streamcount += 1
elif cmd == 'STOP':