mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
increase pyserial timeout
This commit is contained in:
parent
61725a5263
commit
f23170786a
@ -71,7 +71,7 @@ def open_serial_dev(port):
|
||||
# slight delay since kernel may occupy the port briefly
|
||||
time.sleep(0.5)
|
||||
timeout = timeout - 0.5
|
||||
ser = serial.Serial(port, timeout=2)
|
||||
ser = serial.Serial(port, timeout=5)
|
||||
break
|
||||
except serial.SerialException:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user