Commit 2a2caab3 authored by Administrator's avatar Administrator
Browse files

[TPG] Increased serial timeout to account for vend time

parent 9e15e5db
......@@ -13,7 +13,7 @@ class SerialClient:
bytesize=EIGHTBITS, #number of databits
parity=PARITY_NONE, #enable parity checking
stopbits=STOPBITS_ONE, #number of stopbits
timeout=1, #set a timeout value, None for waiting forever, return on read
timeout=10, #set a timeout value, None for waiting forever, return on read
xonxoff=0, #enable software flow control
rtscts=0, #enable RTS/CTS flow control
)
......
......@@ -1091,8 +1091,9 @@ def do_vend_server(options, config_opts):
try:
run_forever(rfh, wfh, options, config_opts)
except VendingException:
except VendingException as e:
logging.error("Connection died, trying again...")
logging.info("Exception: "+e.__str__())
logging.info("Trying again in 5 seconds.")
sleep(5)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment