summaryrefslogtreecommitdiff
path: root/decoders/i2c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-12-13 11:51:41 +0100
committerBert Vermeulen <bert@biot.com>2013-12-13 11:51:41 +0100
commitbe6733ca41275b59a5e240ff104f2a16ad3828d3 (patch)
treeecafd5c1c17962f3979ae635d8e1529956a2c410 /decoders/i2c
parent5ece2a0623d22421300ea6844de569ae87a07d5e (diff)
downloadlibsigrokdecode-be6733ca41275b59a5e240ff104f2a16ad3828d3.tar.gz
libsigrokdecode-be6733ca41275b59a5e240ff104f2a16ad3828d3.zip
i2c: Avoid obsolete method.
Diffstat (limited to 'decoders/i2c')
-rw-r--r--decoders/i2c/pd.py2
1 files changed, 1 insertions, 1 deletions
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'))