Merge branch 'bugfix/windows_10_idf_monitor_redux' into 'master'

idf_monitor: Fix Windows 10 bug in cases where second console write also fails

See merge request !1675
pull/1174/merge
Angus Gratton 2017-12-18 06:42:11 +08:00
commit 25892f2cb7
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -592,8 +592,11 @@ if os.name == 'nt':
self.output.write(b)
except IOError:
# Windows 10 bug since the Fall Creators Update, sometimes writing to console randomly fails
# (but always succeeds the second time, it seems.) Ref https://github.com/espressif/esp-idf/issues/1136
self.output.write(b)
# (but usually succeeds the second time, it seems.) Ref https://github.com/espressif/esp-idf/issues/1136
try:
self.output.write(b)
except IOError:
pass
self.matched = b''
def flush(self):