diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2007-11-08 21:57:19 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2007-11-08 21:57:19 +0000 |
commit | 4569bac3c45e825cbe74f751890b0324b9adda8c (patch) | |
tree | 096a1ab7bac0b193a00d8fa60d5d6e1f87169710 | |
parent | f6cee7e8112462905d4903355f4f9f638afcd89a (diff) | |
download | pyserial-git-4569bac3c45e825cbe74f751890b0324b9adda8c.tar.gz |
consistency with other platforms
-rw-r--r-- | pyserial/serial/serialjava.py | 11 | ||||
-rw-r--r-- | pyserial/serial/serialposix.py | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/pyserial/serial/serialjava.py b/pyserial/serial/serialjava.py index c2421b0..9b56c95 100644 --- a/pyserial/serial/serialjava.py +++ b/pyserial/serial/serialjava.py @@ -9,7 +9,7 @@ import javax.comm from serialutil import * -VERSION = "$Revision: 1.9 $".split()[1] #extract CVS version +VERSION = "$Revision: 1.10 $".split()[1] #extract CVS version def device(portnumber): @@ -157,15 +157,15 @@ class Serial(SerialBase): if not self.sPort: raise portNotOpenError self.sPort.sendBreak(duration*1000.0) - def setRTS(self,on=1): + def setRTS(self, level=1): """Set terminal status line: Request To Send""" if not self.sPort: raise portNotOpenError - self.sPort.setRTS(on) + self.sPort.setRTS(level) - def setDTR(self,on=1): + def setDTR(self, level=1): """Set terminal status line: Data Terminal Ready""" if not self.sPort: raise portNotOpenError - self.sPort.setDTR(on) + self.sPort.setDTR(level) def getCTS(self): """Read terminal status line: Clear To Send""" @@ -209,4 +209,3 @@ if __name__ == '__main__': del s - diff --git a/pyserial/serial/serialposix.py b/pyserial/serial/serialposix.py index f9353c9..4d6f36a 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.32 $".split()[1] #extract CVS version +VERSION = "$Revision: 1.33 $".split()[1] #extract CVS version #Do check the Python version as some constants have moved. if (sys.hexversion < 0x020100f0): @@ -409,3 +409,4 @@ if __name__ == '__main__': print repr(s.read(5)) print s.inWaiting() del s + |