mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
hci: try to re-enable advertisements in slave role
This commit is contained in:
parent
18707219a5
commit
5106e6dc65
@ -1896,6 +1896,8 @@ static void event_handler(uint8_t *packet, int size){
|
||||
} else {
|
||||
// if we're slave, it was an incoming connection, advertisements have stopped
|
||||
hci_stack->le_advertisements_active = 0;
|
||||
// try to re-enable them
|
||||
hci_stack->le_advertisements_todo |= LE_ADVERTISEMENT_TASKS_ENABLE;
|
||||
}
|
||||
// LE connections are auto-accepted, so just create a connection if there isn't one already
|
||||
if (!conn){
|
||||
|
Loading…
x
Reference in New Issue
Block a user