]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/uart/pd.py
pan1321: Code simplifications.
[libsigrokdecode.git] / decoders / uart / pd.py
index 24551da6d03e177854e289178173512fa8704b98..08cb06600f13f5caff23e677d87cf4515107e0ea 100644 (file)
@@ -1,5 +1,5 @@
 ##
-## This file is part of the sigrok project.
+## This file is part of the libsigrokdecode project.
 ##
 ## Copyright (C) 2011-2012 Uwe Hermann <uwe@hermann-uwe.de>
 ##
@@ -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