diff options
Diffstat (limited to 'decoders/i2cfilter')
-rw-r--r-- | decoders/i2cfilter/i2cfilter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/decoders/i2cfilter/i2cfilter.py b/decoders/i2cfilter/i2cfilter.py index 6c1f4c8..939e667 100644 --- a/decoders/i2cfilter/i2cfilter.py +++ b/decoders/i2cfilter/i2cfilter.py @@ -45,7 +45,7 @@ class Decoder(srd.Decoder): def decode(self, ss, es, data): try: - cmd, data, ack_bit = data + cmd, data = data except Exception as e: raise Exception('Malformed I2C input: %s' % str(e)) from e @@ -57,6 +57,9 @@ class Decoder(srd.Decoder): if cmd == 'STOP': self.state = None return + if cmd in ('ACK', 'NACK'): + # Don't care, we just want data. + return if self.state == 'start': # Start of a transfer, see if we want this one. |