summaryrefslogtreecommitdiff
path: root/decoders/i2c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-11-21 22:51:31 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-11-24 20:21:20 +0100
commit0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236 (patch)
treece51bc009dbc48b130ff1280e1ef902f4cf4e4a3 /decoders/i2c
parent24c74fd30fb161837c5f8b01baf3c0fe2dfa4ed5 (diff)
downloadlibsigrokdecode-0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236.tar.gz
libsigrokdecode-0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236.zip
Fix bugs in "Invalid state" printing/exceptions.
Diffstat (limited to 'decoders/i2c')
-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