summaryrefslogtreecommitdiff
path: root/decoders/uart
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/uart')
-rw-r--r--decoders/uart/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py
index 32568da..8902780 100644
--- a/decoders/uart/pd.py
+++ b/decoders/uart/pd.py
@@ -132,8 +132,8 @@ class Decoder(srd.Decoder):
self.oldpins = [1, 1]
def start(self):
- self.out_proto = self.add(srd.OUTPUT_PYTHON, 'uart')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'uart')
+ 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: