Increase timeout in an attempt to prevent timout python failure

This commit is contained in:
Lorenz Meier
2014-08-12 08:21:38 +02:00
parent 2ca8903240
commit 3f4aef60c8

View File

@@ -180,7 +180,7 @@ class uploader(object):
def __init__(self, portname, baudrate):
# open the port, keep the default timeout short so we can poll quickly
self.port = serial.Serial(portname, baudrate, timeout=0.5)
self.port = serial.Serial(portname, baudrate, timeout=2.0)
self.otp = b''
self.sn = b''