]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/edid/pd.py
Add protocol decoder testing framework.
[libsigrokdecode.git] / decoders / edid / pd.py
index 1f621b22a5f1bef8890f4c49dad69fb9a8559e07..3b3536e14576a773fd5da408e24a540edc9b6a6a 100644 (file)
@@ -87,8 +87,8 @@ class Decoder(srd.Decoder):
     optional_probes = []
     options = {}
     annotations = [
-        ['EDID fields', 'EDID structure fields'],
-        ['EDID sections', 'EDID structure sections'],
+        ['fields', 'EDID structure fields'],
+        ['sections', 'EDID structure sections'],
     ]
 
     def __init__(self, **kwargs):
@@ -101,10 +101,7 @@ class Decoder(srd.Decoder):
         self.cache = []
 
     def start(self):
-        self.out_ann = self.add(srd.OUTPUT_ANN, 'edid')
-
-    def report(self):
-        pass
+        self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def decode(self, ss, es, data):
         cmd, data = data