tool/create_packet_log: ignore SEGGER RTT console prefix

This commit is contained in:
Matthias Ringwald 2023-07-18 16:51:40 +02:00
parent 6afff83006
commit dde2e0f082

View File

@ -109,6 +109,9 @@ with open (outfile, 'wb') as fout:
try:
# try to deal with windows 16-bit unicode by dropping \0 characters
line = ''.join([c for c in line if c != '\0'])
# drop Segger RTT console prefix
if line.startswith('00> '):
line = line[4:]
line_conter += 1
timestamp = None
# strip newlines