]> sigrok.org Git - libsigrokdecode.git/commitdiff
i2c: Avoid obsolete method.
authorBert Vermeulen <redacted>
Fri, 13 Dec 2013 10:51:41 +0000 (11:51 +0100)
committerBert Vermeulen <redacted>
Fri, 13 Dec 2013 10:51:41 +0000 (11:51 +0100)
decoders/i2c/pd.py

index ff769737e49c7ca2fed4804aff734e7739ec07f5..6c505e02c2ad1c864150cd2667d35a41b874a050 100644 (file)
@@ -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'))