diff options
Diffstat (limited to 'decoders/srd_usb.py')
-rw-r--r-- | decoders/srd_usb.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/decoders/srd_usb.py b/decoders/srd_usb.py index ce1bd68..053d5d1 100644 --- a/decoders/srd_usb.py +++ b/decoders/srd_usb.py @@ -118,13 +118,13 @@ class Decoder(sigrokdecode.Decoder): options = {} def __init__(self): - self.output_protocol = None - self.output_annotation = None + self.out_proto = None + self.out_ann = None def start(self, metadata): self.rate = metadata['samplerate'] - # self.output_protocol = self.add(2) - self.output_annotation = self.add(1) + # self.out_proto = self.add(2) + self.out_ann = self.add(1) if self.rate < 48000000: raise Exception("Sample rate not sufficient for USB decoding") # Initialise decoder state. @@ -182,6 +182,6 @@ class Decoder(sigrokdecode.Decoder): self.sym = sym if out != []: - # self.put(0, 0, self.output_protocol, out_proto) - self.put(0, 0, self.output_annotation, out) + # self.put(0, 0, self.out_proto, out_proto) + self.put(0, 0, self.out_ann, out) |