]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk.py
srd: decoders: Rename obsolete timeoffset/duration.
[libsigrokdecode.git] / decoders / nunchuk.py
index 86ec17111750dcf6ed2483317f6237f54abfa1a1..bda374522e43bce637597b98a67dceaff659c055 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,13 +85,13 @@ 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
 
-    def decode(self, timeoffset, duration, data):
+    def decode(self, ss, es, data):
         out = []
         o = {}