From: Bert Vermeulen Date: Fri, 13 Dec 2013 10:51:41 +0000 (+0100) Subject: i2c: Avoid obsolete method. X-Git-Tag: libsigrokdecode-0.3.0~186 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=be6733ca41275b59a5e240ff104f2a16ad3828d3;p=libsigrokdecode.git i2c: Avoid obsolete method. --- diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index ff76973..6c505e0 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -121,7 +121,7 @@ class Decoder(srd.Decoder): def start(self): self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - self.out_binary = self.add(srd.OUTPUT_BINARY) + self.out_binary = self.register(srd.OUTPUT_BINARY) self.out_bitrate = self.register(srd.OUTPUT_META, meta=(int, 'Bitrate', 'Bitrate from Start bit to Stop bit'))