X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fmiller%2Fpd.py;h=33214b14f600833ac49032eddd2f2c03867b467a;hb=7b0f3c78c5cda82b900937f3be2e08b063b84f3c;hp=0ab5c4aae23fb324d84bb22a4279e324118f09a6;hpb=1f5685a6807cbe43dc3de2a3d2af5e677662b77f;p=libsigrokdecode.git diff --git a/decoders/miller/pd.py b/decoders/miller/pd.py index 0ab5c4a..33214b1 100644 --- a/decoders/miller/pd.py +++ b/decoders/miller/pd.py @@ -38,7 +38,8 @@ class Decoder(srd.Decoder): desc = 'Miller encoding protocol.' license = 'gplv2+' inputs = ['logic'] - outputs = ['miller'] + outputs = [] + tags = ['Encoding'] channels = ( {'id': 'data', 'name': 'Data', 'desc': 'Data signal'}, ) @@ -50,12 +51,15 @@ class Decoder(srd.Decoder): ('bit', 'Bit'), ('bitstring', 'Bitstring'), ) - 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)) binary = ( ('raw', 'Raw binary'), ) def __init__(self): + self.reset() + + def reset(self): self.samplerate = None def metadata(self, key, value):