mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
idf_monitor: Fix Windows 10 bug in cases where second console write also fails
Although in my tests the second write always passes, people have reported different results. Closes https://github.com/espressif/esp-idf/issues/1136 (again)
This commit is contained in:
committed by
Angus Gratton
parent
043ef32651
commit
6e0f905761
@@ -563,8 +563,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):
|
||||
|
Reference in New Issue
Block a user