mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 06:32:43 +00:00
test/le_audio: set hci dump paths based on device path
This commit is contained in:
parent
32089ce4af
commit
433614be59
@ -213,7 +213,7 @@ int main(int argc, const char * argv[]){
|
||||
|
||||
|
||||
// pre-select serial device
|
||||
config.device_name = "/dev/tty.usbmodemD5D5237DC25B1"; // BL654 with PTS Firmware
|
||||
config.device_name = "/dev/tty.usbmodemEA7EB9D612C31"; // BL654 with PTS Firmware
|
||||
|
||||
// accept path from command line
|
||||
bool second_device = false;
|
||||
@ -227,8 +227,11 @@ int main(int argc, const char * argv[]){
|
||||
|
||||
// log into file using HCI_DUMP_BTSNOOP format
|
||||
char * pklg_path = "/tmp/hci_dump.btsnoop";
|
||||
if (second_device){
|
||||
pklg_path = "/tmp/hci_dump2.btsnoop";
|
||||
if (strcmp(config.device_name, "/dev/tty.usbmodemEF437DF524C51") == 0){
|
||||
pklg_path = "/tmp/hci_dump_source.btsnoop";
|
||||
}
|
||||
if (strcmp(config.device_name, "/dev/tty.usbmodemE6589B44933B1") == 0){
|
||||
pklg_path = "/tmp/hci_dump_sink.btsnoop";
|
||||
}
|
||||
hci_dump_posix_fs_open(pklg_path, HCI_DUMP_BTSNOOP);
|
||||
const hci_dump_t * hci_dump_impl = hci_dump_posix_fs_get_instance();
|
||||
|
Loading…
x
Reference in New Issue
Block a user