diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-11-21 22:51:31 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-11-24 20:21:20 +0100 |
commit | 0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236 (patch) | |
tree | ce51bc009dbc48b130ff1280e1ef902f4cf4e4a3 /decoders/uart/pd.py | |
parent | 24c74fd30fb161837c5f8b01baf3c0fe2dfa4ed5 (diff) | |
download | libsigrokdecode-0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236.tar.gz libsigrokdecode-0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236.zip |
Fix bugs in "Invalid state" printing/exceptions.
Diffstat (limited to 'decoders/uart/pd.py')
-rw-r--r-- | decoders/uart/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index 24551da..83552ce 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -297,7 +297,7 @@ class Decoder(srd.Decoder): elif self.state[rxtx] == 'GET STOP BITS': self.get_stop_bits(rxtx, signal) else: - raise Exception('Invalid state: %d' % self.state[rxtx]) + raise Exception('Invalid state: %s' % self.state[rxtx]) # Save current RX/TX values for the next round. self.oldbit[rxtx] = signal |