mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: Fix IDF Monitor print filter when no ELF file is supplemented
A different serial handler class is used when there was no ELF file passed do esp-idf-monitor. This fix will ensure that print filter check is respected in this case as well.
This commit is contained in:
parent
6212ce9d94
commit
169d7dc3c9
@ -256,9 +256,9 @@ class SerialHandlerNoElf(SerialHandler):
|
||||
if self._serial_check_exit and line == console_parser.exit_key.encode('latin-1'):
|
||||
raise SerialStopException()
|
||||
|
||||
self.logger.print(line + b'\n')
|
||||
self.compare_elf_sha256(line.decode(errors='ignore'))
|
||||
self._force_line_print = False
|
||||
if self._force_line_print or line_matcher.match(line.decode(errors='ignore')):
|
||||
self.logger.print(line + b'\n')
|
||||
self._force_line_print = False
|
||||
|
||||
if self._last_line_part.startswith(CONSOLE_STATUS_QUERY):
|
||||
self.logger.print(CONSOLE_STATUS_QUERY)
|
||||
|
Loading…
Reference in New Issue
Block a user