projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbe99ad
)
srd: Fix transitioncounter protocol decoder.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 14 Jan 2012 00:48:20 +0000
(
01:48
+0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 14 Jan 2012 01:13:51 +0000
(
02:13
+0100)
decoders/transitioncounter.py
patch
|
blob
|
history
diff --git
a/decoders/transitioncounter.py
b/decoders/transitioncounter.py
index 2247248bee6e99c21c82c782fd46ded30d81e9ab..ded3a3d1c8361acb6f9b9e3a8066e8e0920e150c 100644
(file)
--- 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)]]
)