diff --git a/tools/idf_monitor_base/serial_handler.py b/tools/idf_monitor_base/serial_handler.py old mode 100644 new mode 100755 index b3a71f64a2..394dca021e --- a/tools/idf_monitor_base/serial_handler.py +++ b/tools/idf_monitor_base/serial_handler.py @@ -88,13 +88,8 @@ class SerialHandler: if self._last_line_part != b'': # add unprocessed part from previous "data" to the first line sp[0] = self._last_line_part + sp[0] - self._last_line_part = b'' - if sp[-1] != b'': - # last part is not a full line - self._last_line_part = sp.pop() + self._last_line_part = sp.pop() for line in sp: - if line == b'': - continue if self._serial_check_exit and line == console_parser.exit_key.encode('latin-1'): raise SerialStopException() if gdb_helper: