From be465111b552c7c2a2262ac49758a30a8bf1b1d5 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Thu, 14 Nov 2013 17:25:53 +0100 Subject: Use the new Decoder.register() API --- decoders/i2cfilter/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/i2cfilter/pd.py') diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 4586cf7..4fe3a9c 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -48,7 +48,7 @@ class Decoder(srd.Decoder): self.packets = [] # Local cache of I2C packets def start(self): - self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2c') + self.out_proto = self.register(srd.OUTPUT_PYTHON, proto_id='i2c') if self.options['address'] not in range(0, 127 + 1): raise Exception('Invalid slave (must be 0..127).') if self.options['direction'] not in ('both', 'read', 'write'): -- cgit v1.2.3-70-g09d2