diff options
Diffstat (limited to 'decoders/transitioncounter.py')
-rw-r--r-- | decoders/transitioncounter.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py index 2847abc..6fe09bb 100644 --- a/decoders/transitioncounter.py +++ b/decoders/transitioncounter.py @@ -36,14 +36,14 @@ class Decoder(sigrokdecode.Decoder): options = {} def __init__(self, **kwargs): - self.output_protocol = None - self.output_annotation = None + self.out_proto = None + self.out_ann = None self.channels = -1 self.lastsample = None def start(self, metadata): - # self.output_protocol = self.add(2) - self.output_annotation = self.add(1) + # self.out_proto = self.add(2) + self.out_ann = self.add(1) def report(self): pass @@ -97,6 +97,6 @@ class Decoder(sigrokdecode.Decoder): outdata += [[self.transitions[i], self.rising[i], self.falling[i]]] if outdata != []: - # self.put(0, 0, self.output_protocol, out_proto) - self.put(0, 0, self.output_annotation, outdata) + # self.put(0, 0, self.out_proto, out_proto) + self.put(0, 0, self.out_ann, outdata) |