Merge branch 'master' of wien.tomnetworks.com:pyfrprog
[pyfrprog.git] / pkernel / kernel.py
index 576c6807fa11f95d6c52418985579da38ec19eb0..afadfcd4662e95c9a81625ed1cb75479b20ccbb5 100755 (executable)
@@ -9,9 +9,6 @@ KERNEL_BAUDRATE=38400
 
 def recvByte():
        i = tty.read()
-       while len(i)==0:
-               time.sleep(0.03)
-               i = tty.read()
        return ord(i)
 
 def recvByteTO(b): #with timeout
@@ -90,7 +87,7 @@ flashseqs = []
 
 
 print "Initializing serial port..."
-tty = SerialPort(DEVICE, 0, KERNEL_BAUDRATE)
+tty = SerialPort(DEVICE, None, KERNEL_BAUDRATE)
 
 # check command line arguments
 if len(sys.argv) != 2: