mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 06:39:49 +00:00
don't support caching of remote device names for EMBEDDED
This commit is contained in:
parent
a8271db878
commit
223aafc1c7
@ -377,7 +377,9 @@ uint16_t hci_usable_acl_packet_types(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// avoid huge local variables
|
// avoid huge local variables
|
||||||
|
#ifndef EMBEDDED
|
||||||
static device_name_t device_name;
|
static device_name_t device_name;
|
||||||
|
#endif
|
||||||
static void event_handler(uint8_t *packet, int size){
|
static void event_handler(uint8_t *packet, int size){
|
||||||
bd_addr_t addr;
|
bd_addr_t addr;
|
||||||
uint8_t link_type;
|
uint8_t link_type;
|
||||||
@ -513,6 +515,7 @@ static void event_handler(uint8_t *packet, int size){
|
|||||||
hci_add_connection_flags_for_flipped_bd_addr(&packet[2], RECV_PIN_CODE_REQUEST);
|
hci_add_connection_flags_for_flipped_bd_addr(&packet[2], RECV_PIN_CODE_REQUEST);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifndef EMBEDDED
|
||||||
case HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE:
|
case HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE:
|
||||||
if (!hci_stack.remote_device_db) break;
|
if (!hci_stack.remote_device_db) break;
|
||||||
if (packet[2]) break; // status not ok
|
if (packet[2]) break; // status not ok
|
||||||
@ -542,6 +545,7 @@ static void event_handler(uint8_t *packet, int size){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
||||||
if (!packet[2]){
|
if (!packet[2]){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user