summaryrefslogtreecommitdiff
path: root/serial/serialwin32.py
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2016-05-07 23:35:54 +0200
committerChris Liechti <cliechti@gmx.net>2016-05-07 23:35:54 +0200
commitf7534c8198d787cd11a943fd720d0edb8497f8d3 (patch)
treeda78c7fadf1b38f2cf18dc4079191ac6fab21b4a /serial/serialwin32.py
parent19688bf72d963cd74e7f9ce846c804eafd3ba181 (diff)
downloadpyserial-git-f7534c8198d787cd11a943fd720d0edb8497f8d3.tar.gz
revert "fixes for RTS/DTR handling on open", bad solution
- with the patch, control lines have wrong initial state on posix - makes no difference on win32, execpt add code
Diffstat (limited to 'serial/serialwin32.py')
-rw-r--r--serial/serialwin32.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/serial/serialwin32.py b/serial/serialwin32.py
index 1611e21..b843ac7 100644
--- a/serial/serialwin32.py
+++ b/serial/serialwin32.py
@@ -39,11 +39,6 @@ class Serial(SerialBase):
raise SerialException("Port must be configured before it can be used.")
if self.is_open:
raise SerialException("Port is already open.")
- # if RTS and/or DTR are not set before open, they default to True
- if self._rts_state is None:
- self._rts_state = True
- if self._dtr_state is None:
- self._dtr_state = True
# the "\\.\COMx" format is required for devices other than COM1-COM8
# not all versions of windows seem to support this properly
# so that the first few ports are used with the DOS device name