Merge branch 'bugfix/idf_monitor_windows10' into 'master'
idf_monitor: Fix bug with Windows 10 sometimes printing a character twice See merge request idf/esp-idf!1964
This commit is contained in:
commit
6acb38af4c
1 changed files with 7 additions and 9 deletions
|
@ -580,14 +580,12 @@ if os.name == 'nt':
|
||||||
self.matched = b''
|
self.matched = b''
|
||||||
|
|
||||||
def _output_write(self, data):
|
def _output_write(self, data):
|
||||||
# Windows 10 bug since the Fall Creators Update, sometimes writing to console randomly fails
|
|
||||||
# (but usually succeeds afterwards, it seems.)
|
|
||||||
# Ref https://github.com/espressif/esp-idf/issues/1136
|
|
||||||
for tries in range(3):
|
|
||||||
try:
|
try:
|
||||||
self.output.write(data)
|
self.output.write(data)
|
||||||
return
|
|
||||||
except IOError:
|
except IOError:
|
||||||
|
# Windows 10 bug since the Fall Creators Update, sometimes writing to console randomly throws
|
||||||
|
# an exception (however, the character is still written to the screen)
|
||||||
|
# Ref https://github.com/espressif/esp-idf/issues/1136
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
|
|
Loading…
Reference in a new issue