From: Uwe Hermann Date: Sat, 24 Mar 2012 08:37:55 +0000 (+0100) Subject: srd: List 'report()' in all PDs for consistency. X-Git-Tag: libsigrokdecode-0.1.0~22 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=363252b482d189c9cca596b146f5fb6ead6e3412;p=libsigrokdecode.git srd: List 'report()' in all PDs for consistency. --- diff --git a/decoders/edid/edid.py b/decoders/edid/edid.py index b4b5f84..c11d41a 100644 --- a/decoders/edid/edid.py +++ b/decoders/edid/edid.py @@ -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') diff --git a/decoders/i2cfilter/i2cfilter.py b/decoders/i2cfilter/i2cfilter.py index afbee65..6b3d113 100644 --- a/decoders/i2cfilter/i2cfilter.py +++ b/decoders/i2cfilter/i2cfilter.py @@ -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