diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-24 09:37:55 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-24 21:54:56 +0100 |
commit | 363252b482d189c9cca596b146f5fb6ead6e3412 (patch) | |
tree | f79a1d71bbe275cbd22e578b3ea861996ef7658d /decoders | |
parent | 6c36501de9d0b91a203d4943b16d0a63e1c98d9e (diff) | |
download | libsigrokdecode-363252b482d189c9cca596b146f5fb6ead6e3412.tar.gz libsigrokdecode-363252b482d189c9cca596b146f5fb6ead6e3412.zip |
srd: List 'report()' in all PDs for consistency.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/edid/edid.py | 3 | ||||
-rw-r--r-- | decoders/i2cfilter/i2cfilter.py | 3 |
2 files changed, 6 insertions, 0 deletions
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 |