summaryrefslogtreecommitdiff
path: root/decoders/i2c/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/i2c/pd.py')
-rw-r--r--decoders/i2c/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py
index 53321eb..40baf44 100644
--- a/decoders/i2c/pd.py
+++ b/decoders/i2c/pd.py
@@ -232,7 +232,7 @@ class Decoder(srd.Decoder):
if self.is_data_bit(scl, sda):
self.get_ack(scl, sda)
else:
- raise Exception('Invalid state %d' % self.STATE)
+ raise Exception('Invalid state: %s' % self.state)
# Save current SDA/SCL values for the next round.
self.oldscl = scl