]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk.py
srd: output_{protocol,annotation} -> out_{proto,ann}.
[libsigrokdecode.git] / decoders / nunchuk.py
index d3ae8714d17c42e82481f70d9d871fc8aa6f30f3..3091577bcefd0892fa6f99c76ac0d7461eff59c6 100644 (file)
@@ -77,8 +77,8 @@ 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.state = IDLE # TODO: Can we assume a certain initial state?
 
@@ -87,8 +87,8 @@ class Decoder(sigrokdecode.Decoder):
         self.databytecount = 0
 
     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
@@ -172,6 +172,6 @@ class Decoder(sigrokdecode.Decoder):
                 self.databytecount = 0
 
         if out != []:
-            # self.put(0, 0, self.output_protocol, out_proto)
-            self.put(0, 0, self.output_annotation, out)
+            # self.put(0, 0, self.out_proto, out_proto)
+            self.put(0, 0, self.out_ann, out)