diff options
author | Chris Liechti <cliechti@gmx.net> | 2015-08-03 21:41:49 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2015-08-03 21:41:49 +0200 |
commit | 905d5073b202fe5b82a2fabf41e2a01348511bf6 (patch) | |
tree | 96a6033442af3c76dd859fbeecf092b62165ccec /serial/serialposix.py | |
parent | af6d0460e6ce89f70a639640f410c48ba97a8d48 (diff) | |
download | pyserial-git-905d5073b202fe5b82a2fabf41e2a01348511bf6.tar.gz |
fix setXON
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r-- | serial/serialposix.py | 2 |
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: |