mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 01:21:28 +00:00
use basename + .pklg as outname for create_packet_log tool
This commit is contained in:
parent
a449c50a68
commit
d398ec02f8
@ -15,6 +15,7 @@
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
|
|
||||||
packet_counter = 0
|
packet_counter = 0
|
||||||
last_time = None
|
last_time = None
|
||||||
@ -80,7 +81,7 @@ if len(sys.argv) == 1:
|
|||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
infile = sys.argv[1]
|
infile = sys.argv[1]
|
||||||
outfile = 'hci_dump.pklg'
|
outfile = os.path.splitext(infile)[0] + ".pklg"
|
||||||
if len(sys.argv) > 2:
|
if len(sys.argv) > 2:
|
||||||
outfile = sys.argv[2]
|
outfile = sys.argv[2]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user