Skip to content

Commit

Permalink
bugfix(tools): idf.py monitor now reads correctly on Linux
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
0xjakob committed Nov 25, 2022
1 parent 5f25bd8 commit 46c9240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/idf_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def __exit__(self, exc_type, exc_val, exc_tb) -> None: # type: ignore

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
Expand Down

0 comments on commit 46c9240

Please sign in to comment.