tty must be global
authorBernhard Urban <lewurm@gmx.net>
Sun, 3 Jan 2010 14:16:08 +0000 (15:16 +0100)
committerBernhard Urban <lewurm@gmx.net>
Sun, 3 Jan 2010 14:16:08 +0000 (15:16 +0100)
frprog.py

index 41a5385427eb827f264a229bd20e3c562ef71478..0ca52c57de1fd788e5b06f4af00be107e0549c6d 100755 (executable)
--- a/frprog.py
+++ b/frprog.py
@@ -199,6 +199,7 @@ def main(argv=None):
                return 1
 
        print "Initializing serial port..."
+       global tty
        tty = SerialPort(DEVICE, 100, INIT_BAUDRATE)
 
        print "Please press RESET on your board..."