minor fix for serial port detection

This commit is contained in:
Rohit Gupta
2016-04-04 15:35:31 +02:00
parent 691cdca257
commit 5481e609ef
2 changed files with 2 additions and 0 deletions
@@ -58,6 +58,7 @@ from lib_autotest import *
def find_open_port(): def find_open_port():
global serial_port, ser global serial_port, ser
max_ports=100 max_ports=100
serial_port=''
while True: while True:
if os.path.exists(serial_port) == True: if os.path.exists(serial_port) == True:
return serial_port return serial_port
@@ -58,6 +58,7 @@ from lib_autotest import *
def find_open_port(): def find_open_port():
global serial_port, ser global serial_port, ser
max_ports=100 max_ports=100
serial_port=''
while True: while True:
if os.path.exists(serial_port) == True: if os.path.exists(serial_port) == True:
return serial_port return serial_port