X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmx25lxx05d.py;h=bd1ce16d3007c9f1d389de009d51db23adc671b4;hp=0f2f73b8cbcbe43eeab62ef986a60874bef4953b;hb=94d43b37bd34263f5ed9f7135aac5fe7413c7f07;hpb=958f394e13a2f34f3451e10ec0a85743d6cde70a diff --git a/decoders/mx25lxx05d.py b/decoders/mx25lxx05d.py index 0f2f73b..bd1ce16 100644 --- a/decoders/mx25lxx05d.py +++ b/decoders/mx25lxx05d.py @@ -172,15 +172,15 @@ class Decoder(sigrokdecode.Decoder): options = {} # TODO def __init__(self, **kwargs): - self.output_protocol = None - self.output_annotation = None + self.out_proto = None + self.out_ann = None self.state = IDLE self.cmdstate = 1 # TODO self.out = [] def start(self, metadata): - # self.output_protocol = self.output_new(2) - self.output_annotation = self.output_new(1) + # self.out_proto = self.add(sigrokdecode.SRD_OUTPUT_PROTO, 'mx25lxx05d') + self.out_ann = self.add(sigrokdecode.SRD_OUTPUT_ANN, 'mx25lxx05d') def report(self): pass @@ -351,6 +351,6 @@ class Decoder(sigrokdecode.Decoder): pass if self.out != []: - # self.put(0, 0, self.output_protocol, out_proto) - self.put(0, 0, self.output_annotation, self.out) + # self.put(0, 0, self.out_proto, out_proto) + self.put(0, 0, self.out_ann, self.out)