]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk.py
srd: decoders: Metadata consistency fixes/updates.
[libsigrokdecode.git] / decoders / nunchuk.py
index 86ec17111750dcf6ed2483317f6237f54abfa1a1..8bf0228e03b5b722970cd5c207422e1cd8b063ba 100644 (file)
@@ -75,6 +75,7 @@ class Decoder(srd.Decoder):
     outputs = ['nunchuck']
     probes = [] # TODO
     options = {}
+    annotations = []
 
     def __init__(self, **kwargs):
         self.state = IDLE # TODO: Can we assume a certain initial state?
@@ -84,8 +85,8 @@ class Decoder(srd.Decoder):
         self.databytecount = 0
 
     def start(self, metadata):
-        # self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'nunchuk')
-        self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'nunchuk')
+        # self.out_proto = self.add(srd.OUTPUT_PROTO, 'nunchuk')
+        self.out_ann = self.add(srd.OUTPUT_ANN, 'nunchuk')
 
     def report(self):
         pass