mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
hci: fix warnings
This commit is contained in:
parent
2e7060d6a8
commit
95f31ee848
@ -6207,8 +6207,9 @@ static bool hci_whitelist_modification_process(void){
|
||||
|
||||
static bool hci_run_general_gap_le(void){
|
||||
|
||||
#if defined(ENABLE_LE_EXTENDED_ADVERTISING) || defined(ENABLE_LE_WHITELIST_TOUCH_AFTER_RESOLVING_LIST_UPDATE)
|
||||
btstack_linked_list_iterator_t lit;
|
||||
UNUSED(lit);
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_LE_EXTENDED_ADVERTISING
|
||||
if (hci_stack->le_resolvable_private_address_update_s > 0){
|
||||
@ -6816,7 +6817,7 @@ static bool hci_run_general_gap_le(void){
|
||||
btstack_linked_list_iterator_init(&lit, &hci_stack->le_whitelist);
|
||||
while (btstack_linked_list_iterator_has_next(&lit)) {
|
||||
whitelist_entry_t *entry = (whitelist_entry_t *) btstack_linked_list_iterator_next(&lit);
|
||||
if (entry->address_type != peer_identity_addr_type) continue;
|
||||
if ((int)entry->address_type != peer_identity_addr_type) continue;
|
||||
if (memcmp(entry->address, peer_identity_addreses, 6) != 0) continue;
|
||||
log_info("trigger whitelist update %s", bd_addr_to_str(peer_identity_addreses));
|
||||
entry->state |= LE_WHITELIST_REMOVE_FROM_CONTROLLER | LE_WHITELIST_ADD_TO_CONTROLLER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user