mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
remove unused code
This commit is contained in:
parent
ae829d8f67
commit
5f7d6dec88
@ -1628,24 +1628,9 @@ static void packet_handler (void * connection, uint8_t packet_type, uint16_t cha
|
||||
break;
|
||||
|
||||
case HCI_EVENT_COMMAND_COMPLETE:
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_le_set_advertising_parameters)){
|
||||
// only needed for BLE Peripheral
|
||||
hci_send_cmd(&hci_le_set_advertising_data, sizeof(adv_data), adv_data);
|
||||
break;
|
||||
}
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_le_set_advertising_data)){
|
||||
// only needed for BLE Peripheral
|
||||
hci_send_cmd(&hci_le_set_scan_response_data, 10, adv_data);
|
||||
break;
|
||||
}
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_le_set_scan_response_data)){
|
||||
// only needed for BLE Peripheral
|
||||
hci_send_cmd(&hci_le_set_advertise_enable, 1);
|
||||
break;
|
||||
}
|
||||
if (COMMAND_COMPLETE_EVENT(packet, hci_le_encrypt)){
|
||||
sm_aes128_active = 0;
|
||||
= if (sm_central_ah_calculation_active){
|
||||
if (sm_central_ah_calculation_active){
|
||||
sm_central_ah_calculation_active = 0;
|
||||
// compare calulated address against connecting device
|
||||
uint8_t hash[3];
|
||||
|
Loading…
x
Reference in New Issue
Block a user