mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
components/bt: Fix high duty cycle directed advertising will not be stopped when timeout
This commit is contained in:
@ -363,7 +363,10 @@ BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason)
|
|||||||
/* If we don't have one, maybe an SCO link. Send to MM */
|
/* If we don't have one, maybe an SCO link. Send to MM */
|
||||||
if (!p_lcb) {
|
if (!p_lcb) {
|
||||||
#if (BLE_INCLUDED == TRUE)
|
#if (BLE_INCLUDED == TRUE)
|
||||||
BTM_Recovery_Pre_State();
|
/* The Directed Advertising Timeout error code indicates that directed advertising completed */
|
||||||
|
if (reason != HCI_ERR_DIRECTED_ADVERTISING_TIMEOUT) {
|
||||||
|
BTM_Recovery_Pre_State();
|
||||||
|
}
|
||||||
#endif ///BLE_INCLUDED == TRUE
|
#endif ///BLE_INCLUDED == TRUE
|
||||||
status = FALSE;
|
status = FALSE;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user