summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2003-09-20 18:49:20 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2003-09-20 18:49:20 +0000
commitafc28a2850a2c8ac8db22f87beb454eb243f3d08 (patch)
tree6086c2488642cb50b29e07e4d15fb8fd7f91f678
parent8db88b6d7e691d5e616915cfeeb117825de0a37f (diff)
downloadpyserial-git-afc28a2850a2c8ac8db22f87beb454eb243f3d08.tar.gz
name for COM10 was not built correctly, found by Norm Davis
-rw-r--r--pyserial/serial/serialwin32.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyserial/serial/serialwin32.py b/pyserial/serial/serialwin32.py
index 951c323..2946f47 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.22 $")[1] #extract CVS version
+VERSION = string.split("$Revision: 1.23 $")[1] #extract CVS version
PARITY_NONE, PARITY_EVEN, PARITY_ODD = range(3)
STOPBITS_ONE, STOPBITS_TWO = (1, 2)
@@ -29,7 +29,7 @@ def device(portnum):
#the "//./COMx" format is required for devices > 9
#not all versions of windows seem to support this propperly
#so that the first few ports are used with the DOS device name
- if portnum < 10:
+ if portnum < 9:
return 'COM%d' % (portnum+1) #numbers are transformed to a string
else:
return r'\\.\COM%d' % (portnum+1)