]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/srd_usb.py
srd: s/output_new/add/ for all decoders.
[libsigrokdecode.git] / decoders / srd_usb.py
index 396953291042b283ebb3172622182875264d8e2f..ce1bd68339e04d087ba12c48220ed11c5b11b876 100644 (file)
@@ -123,8 +123,8 @@ class Decoder(sigrokdecode.Decoder):
 
     def start(self, metadata):
         self.rate = metadata['samplerate']
-        # self.output_protocol = self.output_new(2)
-        self.output_annotation = self.output_new(1)
+        # self.output_protocol = self.add(2)
+        self.output_annotation = self.add(1)
         if self.rate < 48000000:
             raise Exception("Sample rate not sufficient for USB decoding")
         # Initialise decoder state.