summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-07-21 01:35:41 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2009-07-21 01:35:41 +0000
commit9063ab86edeb3e75af6c1c4b2c9f7cdeee0ecd6c (patch)
tree8d76ecfecd867ffc484331ecb1f4164d1a82d5c9
parentbcd0ad161a71d8a92bfad83a8493988ef6642ae0 (diff)
downloadpyserial-9063ab86edeb3e75af6c1c4b2c9f7cdeee0ecd6c.tar.gz
minor doc changes
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@210 f19166aa-fa4f-0410-85c2-fa1106f25c8a
-rw-r--r--examples/miniterm.py2
-rw-r--r--serial/serialposix.py2
-rw-r--r--serial/serialutil.py8
-rw-r--r--serial/serialwin32.py2
4 files changed, 7 insertions, 7 deletions
diff --git a/examples/miniterm.py b/examples/miniterm.py
index 37b0507..48d07a7 100644
--- a/examples/miniterm.py
+++ b/examples/miniterm.py
@@ -467,7 +467,7 @@ def main():
dest = "menu_char",
action = "store",
type = 'int',
- help = "ASCII code of special character that is used to send a file",
+ help = "ASCII code of special character that is used to control miniterm (menu)",
default = 0x14
)
diff --git a/serial/serialposix.py b/serial/serialposix.py
index 63339b1..a516412 100644
--- a/serial/serialposix.py
+++ b/serial/serialposix.py
@@ -408,7 +408,7 @@ class Serial(SerialBase):
termios.tcsendbreak(self.fd, int(duration/0.25))
def setBreak(self, level=1):
- """Set break: Controls TXD. When active, to transmitting is possible."""
+ """Set break: Controls TXD. When active, no transmitting is possible."""
if self.fd is None: raise portNotOpenError
if level:
fcntl.ioctl(self.fd, TIOCSBRK)
diff --git a/serial/serialutil.py b/serial/serialutil.py
index a1de7c5..8bb18b0 100644
--- a/serial/serialutil.py
+++ b/serial/serialutil.py
@@ -112,7 +112,7 @@ class SerialBase(FileLike):
"""Serial port base class. Provides __init__ function and properties to
get/set port settings."""
- # default values, may be overriden in subclasses that do not support all values
+ # default values, may be overridden in subclasses that do not support all values
BAUDRATES = (50,75,110,134,150,200,300,600,1200,1800,2400,4800,9600,
19200,38400,57600,115200,230400,460800,500000,576000,921600,
1000000,1152000,1500000,2000000,2500000,3000000,3500000,4000000)
@@ -126,10 +126,10 @@ class SerialBase(FileLike):
# can specify a device string, note
# that this isn't portable anymore
# port will be opened if one is specified
- baudrate=9600, # baudrate
- bytesize=EIGHTBITS, # number of databits
+ baudrate=9600, # baud rate
+ bytesize=EIGHTBITS, # number of data bits
parity=PARITY_NONE, # enable parity checking
- stopbits=STOPBITS_ONE, # number of stopbits
+ stopbits=STOPBITS_ONE, # number of stop bits
timeout=None, # set a timeout value, None to wait forever
xonxoff=0, # enable software flow control
rtscts=0, # enable RTS/CTS flow control
diff --git a/serial/serialwin32.py b/serial/serialwin32.py
index fac84f0..613f407 100644
--- a/serial/serialwin32.py
+++ b/serial/serialwin32.py
@@ -11,7 +11,7 @@ import win32event # We use events and the WaitFor[Single|Multiple]Objects functi
import win32con # constants.
from serialutil import *
-#from winbase.h. these should realy be in win32con
+#from winbase.h. these should really be in win32con
MS_CTS_ON = 16
MS_DSR_ON = 32
MS_RING_ON = 64