hci: use advertising todo instead of flag

This commit is contained in:
Matthias Ringwald 2023-03-06 12:03:00 +01:00
parent 0f54aa8d8b
commit 64f9dabab0

View File

@ -5947,7 +5947,7 @@ static bool hci_run_general_gap_le(void){
// Phase 3: modify
if (random_address_change){
if (hci_stack->le_advertisements_todo & LE_ADVERTISEMENT_TASKS_SET_ADDRESS){
hci_stack->le_advertisements_todo &= ~LE_ADVERTISEMENT_TASKS_SET_ADDRESS;
#ifdef ENABLE_LE_EXTENDED_ADVERTISING
if (hci_extended_advertising_supported()) {