Increase serial connection timeout.
This commit is contained in:
parent
995718266f
commit
93a226ff79
|
@ -56,7 +56,7 @@ class RFIDReader():
|
|||
self.bytesize = params.get('bytesize', EIGHTBITS)
|
||||
self.parity = params.get('parity', PARITY_NONE)
|
||||
self.stopbits = params.get('stopbits', STOPBITS_ONE)
|
||||
self.timeout = params.get('timeout', 2)
|
||||
self.timeout = params.get('timeout', 5)
|
||||
self.xonxoff = params.get('xonxoff', False)
|
||||
self.rtscts = params.get('rtscts', False)
|
||||
self.writeTimeout = params.get('writeTimeout', None)
|
||||
|
|
|
@ -32,7 +32,7 @@ PARAMS = {
|
|||
'bytesize': EIGHTBITS,
|
||||
'parity': PARITY_NONE,
|
||||
'stopbits': STOPBITS_ONE,
|
||||
'timeout': 2,
|
||||
'timeout': 5,
|
||||
'xonxoff': False,
|
||||
'rtscts': False,
|
||||
'writeTimeout': None,
|
||||
|
|
Reference in New Issue