summaryrefslogtreecommitdiff
path: root/decoders/uart/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/uart/pd.py')
-rw-r--r--decoders/uart/pd.py2
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