diff options
-rwxr-xr-x | tools/pyboard.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index b7babdc305..d96ccc328a 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -179,7 +179,9 @@ class ProcessPtyToTerminal: self.close() sys.exit(1) 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): import signal |