From 46c92405f2828ef5577fd9449a58a9601970b53a Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Thu, 24 Nov 2022 15:52:46 +0100 Subject: [PATCH] bugfix(tools): idf.py monitor now reads correctly on Linux A missing flush in the serial reader implementation for Linux target was causing input to idf.py monitor to not be forwarded to the application. This is fixed now. --- tools/idf_monitor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index b990ba3be5..ac127549f0 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -277,6 +277,7 @@ class LinuxMonitor(Monitor): def serial_write(self, *args: str, **kwargs: str) -> None: self.serial.stdin.write(*args, **kwargs) + self.serial.stdin.flush() def check_gdb_stub_and_run(self, line: bytes) -> None: return # fake function for linux target