mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
LE Set Event Mask not necessary as default includes all current 4.0 LE events
This commit is contained in:
parent
cac78adf23
commit
c624031354
@ -141,16 +141,12 @@ static void packet_handler (void * connection, uint8_t packet_type, uint16_t cha
|
||||
|
||||
case HCI_EVENT_COMMAND_COMPLETE:
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_write_le_host_supported)){
|
||||
// into hci.c
|
||||
hci_send_cmd(&hci_le_set_event_mask, 0xffffffff, 0xffffffff);
|
||||
break;
|
||||
}
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_le_set_event_mask)){
|
||||
// into hci.c
|
||||
hci_send_cmd(&hci_le_read_buffer_size);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_le_read_buffer_size)){
|
||||
printf("LE buffer size: %u, count %u\n", READ_BT_16(packet,6), packet[8]);
|
||||
// only needed for BLE Peripheral, consider sending these as a default
|
||||
|
Loading…
x
Reference in New Issue
Block a user