mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Increase timeout in an attempt to prevent timout python failure
This commit is contained in:
@@ -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''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user