diff options
Diffstat (limited to 'usv_driver.py')
-rwxr-xr-x | usv_driver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usv_driver.py b/usv_driver.py index c8ba8bc..5cb1167 100755 --- a/usv_driver.py +++ b/usv_driver.py @@ -7,7 +7,8 @@ import re class Usv(object): def __init__(self, device, baudrate, json_file): self._serial_port = serial.Serial(device, - baudrate=baudrate) + baudrate=baudrate, + timeout=10) # force a clean prompt self._serial_port.write(b"\r") |