summaryrefslogtreecommitdiff
path: root/decoders/usb_signalling/pd.py
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-11-14 17:25:53 +0100
committerBert Vermeulen <bert@biot.com>2013-11-15 22:05:54 +0100
commitbe465111b552c7c2a2262ac49758a30a8bf1b1d5 (patch)
treebd2b8782a9304574fd8309b10c6e4d14a6d3e16c /decoders/usb_signalling/pd.py
parent8a3c879201df27615f30b7c6b3a4072526c0e378 (diff)
downloadlibsigrokdecode-be465111b552c7c2a2262ac49758a30a8bf1b1d5.tar.gz
libsigrokdecode-be465111b552c7c2a2262ac49758a30a8bf1b1d5.zip
Use the new Decoder.register() API
Diffstat (limited to 'decoders/usb_signalling/pd.py')
-rw-r--r--decoders/usb_signalling/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py
index 0d21d22..3760dea 100644
--- a/decoders/usb_signalling/pd.py
+++ b/decoders/usb_signalling/pd.py
@@ -109,8 +109,8 @@ class Decoder(srd.Decoder):
self.state = 'IDLE'
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'usb_signalling')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'usb_signalling')
+ self.out_proto = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE: