From 0eeeb544e1ea3cef9669f98e7c0b19b8f73a9236 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 21 Nov 2012 22:51:31 +0100 Subject: Fix bugs in "Invalid state" printing/exceptions. --- decoders/uart/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/uart') 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 -- cgit v1.2.3-70-g09d2