diff options
Diffstat (limited to 'decoders/edid/edid.py')
-rw-r--r-- | decoders/edid/edid.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/decoders/edid/edid.py b/decoders/edid/edid.py index 21ab008..a03fe67 100644 --- a/decoders/edid/edid.py +++ b/decoders/edid/edid.py @@ -105,8 +105,12 @@ class Decoder(srd.Decoder): pass def decode(self, ss, es, data): - if type(data) != int: - raise Exception('malformed ddc2 input: expected 1 byte') + cmd, data = data + + # We only care about actual data bytes that are read (for now). + if cmd != 'DATA READ': + return + self.cnt += 1 self.sn.append([ss, es]) self.cache.append(data) |