commit | 905d5073b202fe5b82a2fabf41e2a01348511bf6 | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Mon Aug 03 21:41:49 2015 +0200 |
committer | Chris Liechti <cliechti@gmx.net> | Mon Aug 03 21:41:49 2015 +0200 |
tree | 96a6033442af3c76dd859fbeecf092b62165ccec | |
parent | af6d0460e6ce89f70a639640f410c48ba97a8d48 [diff] [blame] |
fix setXON
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 @@ 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: