diff options
Diffstat (limited to 'pyserial')
-rw-r--r-- | pyserial/serial/serialwin32.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyserial/serial/serialwin32.py b/pyserial/serial/serialwin32.py index 2c0426a..ec7e2ed 100644 --- a/pyserial/serial/serialwin32.py +++ b/pyserial/serial/serialwin32.py @@ -11,7 +11,7 @@ import win32con # constants. import sys, string import serialutil -VERSION = string.split("$Revision: 1.14 $")[1] #extract CVS version +VERSION = string.split("$Revision: 1.15 $")[1] #extract CVS version PARITY_NONE, PARITY_EVEN, PARITY_ODD = range(3) STOPBITS_ONE, STOPBITS_TWO = (1, 2) @@ -78,7 +78,8 @@ class Serial(serialutil.FileLike): else: #timeouts = (0, 0, 0, 0, 0) #timeouts are done with WaitForSingleObject #timeouts = (win32con.MAXDWORD, 0, 0, 0, 1000) #doesn't works - timeouts = (timeout*1000, 0, timeout*1000, 0, 0) + #timeouts = (timeout*1000, 0, timeout*1000, 0, 0) + timeouts = (0, 0, timeout*1000, 0, timeout*1000) win32file.SetCommTimeouts(self.hComPort, timeouts) #win32file.SetCommMask(self.hComPort, win32file.EV_RXCHAR | win32file.EV_TXEMPTY | |