srd: s/output_new/add/ for all decoders.
[libsigrokdecode.git] / decoders / spi.py
index 2c7445f9f427354444743095a6b1741625413572..8c62cde6c40aae8445af67fadb898cc524912d8b 100644 (file)
@@ -46,8 +46,8 @@ class Decoder(sigrokdecode.Decoder):
         self.output_annotation = None
 
     def start(self, metadata):
-        # 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)
 
     def report(self):
         return 'SPI: %d bytes received' % self.bytesreceived