summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-14 01:48:20 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-14 02:13:51 +0100
commitdbbee4bf6c71d7b3403e465a9dd481962fe7c77b (patch)
tree73add7ae7d1d1e47f37adabc4f48d41462633c44 /decoders
parentbbe99ad5311855f2c1e12195ba8632ca8524b654 (diff)
downloadlibsigrokdecode-dbbee4bf6c71d7b3403e465a9dd481962fe7c77b.tar.gz
libsigrokdecode-dbbee4bf6c71d7b3403e465a9dd481962fe7c77b.zip
srd: Fix transitioncounter protocol decoder.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/transitioncounter.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py
index 2247248..ded3a3d 100644
--- a/decoders/transitioncounter.py
+++ b/decoders/transitioncounter.py
@@ -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)]])