summaryrefslogtreecommitdiff
path: root/decoders/srd_usb.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/srd_usb.py')
-rw-r--r--decoders/srd_usb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/srd_usb.py b/decoders/srd_usb.py
index 3969532..ce1bd68 100644
--- a/decoders/srd_usb.py
+++ b/decoders/srd_usb.py
@@ -123,8 +123,8 @@ class Decoder(sigrokdecode.Decoder):
def start(self, metadata):
self.rate = metadata['samplerate']
- # self.output_protocol = self.output_new(2)
- self.output_annotation = self.output_new(1)
+ # self.output_protocol = self.add(2)
+ self.output_annotation = self.add(1)
if self.rate < 48000000:
raise Exception("Sample rate not sufficient for USB decoding")
# Initialise decoder state.