diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 21b59a103..ccaddffa1 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -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):