summaryrefslogtreecommitdiff
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
commit412c5fafaa264e7e9ed12c380a90be4c23f52ec0 (patch)
tree20fa65ddeab37183a0d1f58937830b41bc373bd5
parent5904709b01b1adc754fda7342ebe09158b20c77f (diff)
downloadpyserial-412c5fafaa264e7e9ed12c380a90be4c23f52ec0.tar.gz
counting on irix, still an issue: different device names, depending on flow control setting
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk@152 f19166aa-fa4f-0410-85c2-fa1106f25c8a
-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):