]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/mx25lxx05d.py
srd: decoders: Metadata consistency fixes/updates.
[libsigrokdecode.git] / decoders / mx25lxx05d.py
index 4a87fa4b4b57476978936527f9244cd04cdfb54d..82a43cfd4fda438a912066b8849850ef9336d2a6 100644 (file)
@@ -159,7 +159,7 @@ miso_packets = [
 
 class Decoder(srd.Decoder):
     id = 'mx25lxx05d'
-    name = 'Macronix MX25Lxx05D'
+    name = 'MX25Lxx05D'
     longname = 'Macronix MX25Lxx05D SPI flash chip decoder'
     desc = 'Macronix MX25Lxx05D SPI flash chip decoder'
     longdesc = 'TODO'
@@ -170,6 +170,7 @@ class Decoder(srd.Decoder):
     outputs = ['mx25lxx05d']
     probes = [] # TODO: HOLD#, WP#/ACC
     options = {} # TODO
+    annotations = []
 
     def __init__(self, **kwargs):
         self.state = IDLE
@@ -177,8 +178,8 @@ class Decoder(srd.Decoder):
         self.out = []
 
     def start(self, metadata):
-        # self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'mx25lxx05d')
-        self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'mx25lxx05d')
+        # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mx25lxx05d')
+        self.out_ann = self.add(srd.OUTPUT_ANN, 'mx25lxx05d')
 
     def report(self):
         pass