summaryrefslogtreecommitdiff
path: root/serial/serialposix.py
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2015-08-03 21:41:49 +0200
committerChris Liechti <cliechti@gmx.net>2015-08-03 21:41:49 +0200
commit905d5073b202fe5b82a2fabf41e2a01348511bf6 (patch)
tree96a6033442af3c76dd859fbeecf092b62165ccec /serial/serialposix.py
parentaf6d0460e6ce89f70a639640f410c48ba97a8d48 (diff)
downloadpyserial-git-905d5073b202fe5b82a2fabf41e2a01348511bf6.tar.gz
fix setXON
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r--serial/serialposix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/serialposix.py b/serial/serialposix.py
index b71df8d..5542d28 100644
--- a/serial/serialposix.py
+++ b/serial/serialposix.py
@@ -645,7 +645,7 @@ class Serial(SerialBase, io.RawIOBase):
This will send XON (true) and XOFF (false) to the other device.
WARNING: this function is not portable to different platforms!
"""
- if not self.hComPort: raise portNotOpenError
+ if not self._isOpen: raise portNotOpenError
if enable:
termios.tcflow(self.fd, TERMIOS.TCION)
else: