summaryrefslogtreecommitdiff
path: root/pyserial
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2002-07-03 19:50:10 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2002-07-03 19:50:10 +0000
commit17d0f5db2ec162f107133b38b66e19b206158bdf (patch)
treeaf298aacc577e6651d7af927116f753b26edd1b8 /pyserial
parent20eeeab0ccc0fa1bbfccbede1b50569af999eccb (diff)
downloadpyserial-git-17d0f5db2ec162f107133b38b66e19b206158bdf.tar.gz
overlaped structure was wrong
Diffstat (limited to 'pyserial')
-rw-r--r--pyserial/serial/serialwin32.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyserial/serial/serialwin32.py b/pyserial/serial/serialwin32.py
index a8a2d6e..2c0426a 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.13 $")[1] #extract CVS version
+VERSION = string.split("$Revision: 1.14 $")[1] #extract CVS version
PARITY_NONE, PARITY_EVEN, PARITY_ODD = range(3)
STOPBITS_ONE, STOPBITS_TWO = (1, 2)
@@ -198,8 +198,8 @@ class Serial(serialutil.FileLike):
read = str(buf)
else:
flags, comstat = win32file.ClearCommError(self.hComPort)
- rc, buf = win32file.ReadFile(self.hComPort, win32file.AllocateReadBuffer(size), self.overlapped)
- n = win32file.GetOverlappedResult(self.hComPort, self.overlapped, 1)
+ rc, buf = win32file.ReadFile(self.hComPort, win32file.AllocateReadBuffer(size), overlapped)
+ n = win32file.GetOverlappedResult(self.hComPort, overlapped, 1)
read = str(buf[:n])
return read