mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
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:
@@ -580,15 +580,13 @@ 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
|
try:
|
||||||
# (but usually succeeds afterwards, it seems.)
|
self.output.write(data)
|
||||||
# Ref https://github.com/espressif/esp-idf/issues/1136
|
except IOError:
|
||||||
for tries in range(3):
|
# Windows 10 bug since the Fall Creators Update, sometimes writing to console randomly throws
|
||||||
try:
|
# an exception (however, the character is still written to the screen)
|
||||||
self.output.write(data)
|
# Ref https://github.com/espressif/esp-idf/issues/1136
|
||||||
return
|
pass
|
||||||
except IOError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
for b in data:
|
for b in data:
|
||||||
|
Reference in New Issue
Block a user