mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-06 07:00:59 +00:00
tool/create_packet_log: ignore SEGGER RTT console prefix
This commit is contained in:
parent
6afff83006
commit
dde2e0f082
@ -109,6 +109,9 @@ with open (outfile, 'wb') as fout:
|
|||||||
try:
|
try:
|
||||||
# try to deal with windows 16-bit unicode by dropping \0 characters
|
# try to deal with windows 16-bit unicode by dropping \0 characters
|
||||||
line = ''.join([c for c in line if c != '\0'])
|
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
|
line_conter += 1
|
||||||
timestamp = None
|
timestamp = None
|
||||||
# strip newlines
|
# strip newlines
|
||||||
|
Loading…
Reference in New Issue
Block a user