Skip to content
Snippets Groups Projects
Commit 2cbe9978 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tools/pyboard: ProcessPtyToTerminal: Add workaround for PySerial bug.

When working with a "virtual" port, like PTY. The issue described in
http://stackoverflow.com/questions/34831131/pyserial-does-not-play-well-with-virtual-port
parent d4689962
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,9 @@ class ProcessPtyToTerminal: ...@@ -179,7 +179,9 @@ class ProcessPtyToTerminal:
self.close() self.close()
sys.exit(1) sys.exit(1)
pty = m.group() pty = m.group()
self.ser = serial.Serial(pty, interCharTimeout=1) # rtscts, dsrdtr params are to workaround pyserial bug:
# http://stackoverflow.com/questions/34831131/pyserial-does-not-play-well-with-virtual-port
self.ser = serial.Serial(pty, interCharTimeout=1, rtscts=True, dsrdtr=True)
def close(self): def close(self):
import signal import signal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment