summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index 8459bcf655..dac51e7d6b 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -244,6 +244,8 @@ class ProcessPtyToTerminal:
self.close()
sys.exit(1)
pty = m.group()
+ # Compensate for some boards taking a bit longer to start
+ time.sleep(0.1)
# rtscts, dsrdtr params are to workaround pyserial bug:
# http://stackoverflow.com/questions/34831131/pyserial-does-not-play-well-with-virtual-port
self.serial = serial.Serial(pty, interCharTimeout=1, rtscts=True, dsrdtr=True)