summaryrefslogtreecommitdiff
path: root/decoders/nunchuk.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-10 02:11:50 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-10 02:11:50 +0100
commitc9b24fc3d2f8c84338f07239edc1d4850164ae0c (patch)
tree9f8213adbf83a1941fbbcd77913a5b8629f6e3d1 /decoders/nunchuk.py
parent2fd89a85c4a1131ca259d794a43b26b8bd84b6a0 (diff)
downloadlibsigrokdecode-c9b24fc3d2f8c84338f07239edc1d4850164ae0c.tar.gz
libsigrokdecode-c9b24fc3d2f8c84338f07239edc1d4850164ae0c.zip
srd: output_{protocol,annotation} -> out_{proto,ann}.
Diffstat (limited to 'decoders/nunchuk.py')
-rw-r--r--decoders/nunchuk.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py
index d3ae871..3091577 100644
--- a/decoders/nunchuk.py
+++ b/decoders/nunchuk.py
@@ -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)