mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
monitor: Fix Windows 10 crash since Fall Creators Update
Closes https://github.com/espressif/esp-idf/issues/1136
This commit is contained in:
committed by
Angus Gratton
parent
4395f7c94e
commit
19598fa6d3
@ -559,7 +559,12 @@ if os.name == 'nt':
|
|||||||
self.output.write(self.matched) # not an ANSI color code, display verbatim
|
self.output.write(self.matched) # not an ANSI color code, display verbatim
|
||||||
self.matched = b''
|
self.matched = b''
|
||||||
else:
|
else:
|
||||||
self.output.write(b)
|
try:
|
||||||
|
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)
|
||||||
self.matched = b''
|
self.matched = b''
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
|
Reference in New Issue
Block a user