X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmorse%2Fpd.py;h=f768b3a082da8254b154c8b3214218835a6d121d;hb=dca19fbfdf0650dba693c0ac6213f6cdb748a8c3;hp=9a83b63a84b390df109cd55af1e694d88791da03;hpb=2d0ef8bdad13fa50dbb9073c0ce4fd0ce4e025b6;p=libsigrokdecode.git diff --git a/decoders/morse/pd.py b/decoders/morse/pd.py index 9a83b63..f768b3a 100644 --- a/decoders/morse/pd.py +++ b/decoders/morse/pd.py @@ -120,7 +120,8 @@ class Decoder(srd.Decoder): desc = 'Demodulated morse code protocol.' license = 'gplv2+' inputs = ['logic'] - outputs = ['morse'] + outputs = [] + tags = ['Encoding'] channels = ( {'id': 'data', 'name': 'Data', 'desc': 'Data line'}, ) @@ -129,12 +130,12 @@ class Decoder(srd.Decoder): ) annotations = ( ('time', 'Time'), - ('units', 'Units'), + ('unit', 'Unit'), ('symbol', 'Symbol'), ('letter', 'Letter'), ('word', 'Word'), ) - annotation_rows = tuple((u, v, (i,)) for i, (u, v) in enumerate(annotations)) + annotation_rows = tuple((u + 's', v + 's', (i,)) for i, (u, v) in enumerate(annotations)) def __init__(self): self.reset()