mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
hci: log local name during init
This commit is contained in:
parent
e8afc3592d
commit
9e263bd760
@ -1449,6 +1449,11 @@ static void event_handler(uint8_t *packet, int size){
|
||||
// log_info("HCI_EVENT_COMMAND_COMPLETE cmds old %u - new %u", hci_stack->num_cmd_packets, packet[2]);
|
||||
hci_stack->num_cmd_packets = packet[2];
|
||||
|
||||
if (HCI_EVENT_IS_COMMAND_COMPLETE(packet, hci_read_local_name)){
|
||||
// terminate, name 248 chars
|
||||
packet[6+248] = 0;
|
||||
log_info("local name: %s", &packet[6]);
|
||||
}
|
||||
if (HCI_EVENT_IS_COMMAND_COMPLETE(packet, hci_read_buffer_size)){
|
||||
// from offset 5
|
||||
// status
|
||||
|
Loading…
Reference in New Issue
Block a user