summaryrefslogtreecommitdiff
path: root/pyserial
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2006-06-05 20:03:17 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2006-06-05 20:03:17 +0000
commite2418e9d8c3667b6adb24030f959d960b60862df (patch)
tree20fa65ddeab37183a0d1f58937830b41bc373bd5 /pyserial
parent9743e22c588bbf0a0cf9df22c1d7eac9e15abff7 (diff)
downloadpyserial-git-e2418e9d8c3667b6adb24030f959d960b60862df.tar.gz
counting on irix, still an issue: different device names, depending on flow control setting
Diffstat (limited to 'pyserial')
-rw-r--r--pyserial/serial/serialposix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyserial/serial/serialposix.py b/pyserial/serial/serialposix.py
index d3c0f8b..75798f2 100644
--- a/pyserial/serial/serialposix.py
+++ b/pyserial/serial/serialposix.py
@@ -13,7 +13,7 @@
import sys, os, fcntl, termios, struct, select, errno
from serialutil import *
-VERSION = "$Revision: 1.29 $".split()[1] #extract CVS version
+VERSION = "$Revision: 1.30 $".split()[1] #extract CVS version
#Do check the Python version as some constants have moved.
if (sys.hexversion < 0x020100f0):
@@ -52,9 +52,9 @@ elif plat[:6] == 'netbsd': #NetBSD 1.6 testing by Erk
def device(port):
return '/dev/dty%02d' % port
-elif plat[:4] == 'irix': #IRIX (not tested)
+elif plat[:4] == 'irix': #IRIX (partialy tested)
def device(port):
- return '/dev/ttyf%d' % port
+ return '/dev/ttyf%d' % (port+1) #XXX different device names depending on flow control
elif plat[:2] == 'hp': #HP-UX (not tested)
def device(port):