From: Uwe Hermann Date: Sat, 14 Jan 2012 00:48:20 +0000 (+0100) Subject: srd: Fix transitioncounter protocol decoder. X-Git-Tag: libsigrokdecode-0.1.0~166 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dbbee4bf6c71d7b3403e465a9dd481962fe7c77b;p=libsigrokdecode.git srd: Fix transitioncounter protocol decoder. --- 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)]])