diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-03 00:20:38 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-08-03 00:20:38 +0000 |
commit | e9bcc621f80bea698fd5d28f6a1444a5f882f6de (patch) | |
tree | 534b7ad4a60fe03e6d3659f14ff5d59add46189e /examples | |
parent | cda3eeffe6706fa32d4c6a5c48f21f09a56467d3 (diff) | |
download | pyserial-e9bcc621f80bea698fd5d28f6a1444a5f882f6de.tar.gz |
add support for connecting to RFC2217 ports (just use the URL)
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@279 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'examples')
-rw-r--r-- | examples/miniterm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/miniterm.py b/examples/miniterm.py index 48d07a7..03dfba1 100644 --- a/examples/miniterm.py +++ b/examples/miniterm.py @@ -133,7 +133,7 @@ REPR_MODES = ('raw', 'some control', 'all control', 'hex') class Miniterm: def __init__(self, port, baudrate, parity, rtscts, xonxoff, echo=False, convert_outgoing=CONVERT_CRLF, repr_mode=0): - self.serial = serial.Serial(port, baudrate, parity=parity, rtscts=rtscts, xonxoff=xonxoff, timeout=0.7) + self.serial = serial.serial_class_for_url(port, baudrate, parity=parity, rtscts=rtscts, xonxoff=xonxoff, timeout=1) self.echo = echo self.repr_mode = repr_mode self.convert_outgoing = convert_outgoing |