Increase serial connection timeout.

This commit is contained in:
Mikaël Ates 2016-01-08 16:01:16 +01:00
parent 995718266f
commit 93a226ff79
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -32,7 +32,7 @@ PARAMS = {
'bytesize': EIGHTBITS,
'parity': PARITY_NONE,
'stopbits': STOPBITS_ONE,
'timeout': 2,
'timeout': 5,
'xonxoff': False,
'rtscts': False,
'writeTimeout': None,