]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/transitioncounter.py
srd: output_{protocol,annotation} -> out_{proto,ann}.
[libsigrokdecode.git] / decoders / transitioncounter.py
index 2847abc345cafb50af27b0f86183750ba9a97c5b..6fe09bbe8fb443d610b4f6c7731237fa482d942c 100644 (file)
@@ -36,14 +36,14 @@ class Decoder(sigrokdecode.Decoder):
     options = {}
 
     def __init__(self, **kwargs):
-        self.output_protocol = None
-        self.output_annotation = None
+        self.out_proto = None
+        self.out_ann = None
         self.channels = -1
         self.lastsample = None
 
     def start(self, metadata):
-        # self.output_protocol = self.add(2)
-        self.output_annotation = self.add(1)
+        # self.out_proto = self.add(2)
+        self.out_ann = self.add(1)
 
     def report(self):
         pass
@@ -97,6 +97,6 @@ class Decoder(sigrokdecode.Decoder):
             outdata += [[self.transitions[i], self.rising[i], self.falling[i]]]
 
         if outdata != []:
-            # self.put(0, 0, self.output_protocol, out_proto)
-            self.put(0, 0, self.output_annotation, outdata)
+            # self.put(0, 0, self.out_proto, out_proto)
+            self.put(0, 0, self.out_ann, outdata)