]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: List 'report()' in all PDs for consistency.
authorUwe Hermann <redacted>
Sat, 24 Mar 2012 08:37:55 +0000 (09:37 +0100)
committerUwe Hermann <redacted>
Sat, 24 Mar 2012 20:54:56 +0000 (21:54 +0100)
decoders/edid/edid.py
decoders/i2cfilter/i2cfilter.py

index b4b5f844698b581d8e0c72de44b2c43d046d4995..c11d41a6c5e19ab8a47294c9bf5b73c80d8d75f7 100644 (file)
@@ -101,6 +101,9 @@ class Decoder(srd.Decoder):
     def start(self, metadata):
         self.out_ann = self.add(srd.OUTPUT_ANN, 'edid')
 
+    def report(self):
+        pass
+
     def decode(self, ss, es, data):
         if type(data) != int:
             raise Exception('malformed ddc2 input: expected 1 byte')
index afbee650717814d907da52221478d03ee7f50545..6b3d1134326f067c6af2d4367519195988cfb5de 100644 (file)
@@ -43,6 +43,9 @@ class Decoder(srd.Decoder):
         if self.options['direction'] not in ('', 'read', 'write'):
             raise Exception('Invalid direction: expected "read" or "write"')
 
+    def report(self):
+        pass
+
     def decode(self, ss, es, data):
         try:
             cmd, data = data