Forráskód Böngészése

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.
Jakob Hasse 3 éve
szülő
commit
6d9d23702f
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      tools/idf_monitor.py

+ 1 - 0
tools/idf_monitor.py

@@ -276,6 +276,7 @@ class LinuxMonitor(Monitor):
 
 
     def serial_write(self, *args: str, **kwargs: str) -> None:
     def serial_write(self, *args: str, **kwargs: str) -> None:
         self.serial.stdin.write(*args, **kwargs)
         self.serial.stdin.write(*args, **kwargs)
+        self.serial.stdin.flush()
 
 
     def check_gdb_stub_and_run(self, line: bytes) -> None:
     def check_gdb_stub_and_run(self, line: bytes) -> None:
         return  # fake function for linux target
         return  # fake function for linux target