increase pyserial timeout

This commit is contained in:
hathach 2024-08-13 13:50:19 +07:00
parent 61725a5263
commit f23170786a
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52

View File

@ -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