]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/i2c.py
srd: change output_new() API call to add()
[libsigrokdecode.git] / decoders / i2c.py
index abe4d7ec7e69c4258f1c380475d77a33f764e80e..f098affcbbe966af5d208c85d4fc99c92ca51eaf 100644 (file)
@@ -180,8 +180,8 @@ class Decoder(sigrokdecode.Decoder):
         self.oldsda = None
 
     def start(self, metadata):
-        self.output_protocol = self.output_new(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'i2c')
-        self.output_annotation = self.output_new(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'i2c')
+        self.output_protocol = self.add(sigrokdecode.SRD_OUTPUT_PROTOCOL, 'i2c')
+        self.output_annotation = self.add(sigrokdecode.SRD_OUTPUT_ANNOTATION, 'i2c')
 
     def report(self):
         pass