We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8384004 commit c1dbeb5Copy full SHA for c1dbeb5
test/hil/hil_test.py
@@ -65,13 +65,14 @@ def open_serial_dev(port):
65
if os.path.exists(port):
66
try:
67
# slight delay since kernel may occupy the port briefly
68
- time.sleep(0.2)
+ time.sleep(0.5)
69
+ timeout = timeout - 0.5
70
ser = serial.Serial(port, timeout=1)
71
break
72
except serial.SerialException:
73
pass
- time.sleep(0.8)
74
- timeout = timeout - 1
75
76
assert timeout, 'Device not available or Cannot open port'
77
return ser
78
0 commit comments