summaryrefslogtreecommitdiff
path: root/decoders/i2cdemux
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/i2cdemux')
-rw-r--r--decoders/i2cdemux/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py
index 1e1d09c..d86c597 100644
--- a/decoders/i2cdemux/pd.py
+++ b/decoders/i2cdemux/pd.py
@@ -68,8 +68,8 @@ class Decoder(srd.Decoder):
# We're never seen this slave, add a new stream.
self.slaves.append(databyte)
- self.out_proto.append(self.add(srd.OUTPUT_PYTHON,
- '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':