]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/transitioncounter.py
srd: rename srd_usb to what it thinks it's called
[libsigrokdecode.git] / decoders / transitioncounter.py
index 2247248bee6e99c21c82c782fd46ded30d81e9ab..8cb32bb772029507ec8e721f3bf3622e61843dd5 100644 (file)
@@ -23,7 +23,7 @@ import sigrokdecode as srd
 class Decoder(srd.Decoder):
     id = 'transitioncounter'
     name = 'Transition counter'
-    longname = '...'
+    longname = 'Pin transition counter'
     desc = 'Counts rising/falling edges in the signal.'
     longdesc = '...'
     author = 'Uwe Hermann'
@@ -33,7 +33,9 @@ class Decoder(srd.Decoder):
     outputs = ['transitioncounts']
     probes = []
     options = {}
-    annotations = []
+    annotations = [
+        ['TODO', 'TODO'],
+    ]
 
     def __init__(self, **kwargs):
         self.channels = -1
@@ -96,5 +98,5 @@ class Decoder(srd.Decoder):
 
         if outdata != []:
             # self.put(0, 0, self.out_proto, out_proto)
-            self.put(0, 0, self.out_ann, outdata)
+            self.put(0, 0, self.out_ann, [0, [str(outdata)]])