Fix process enable queue guard not being reset on failed runs

pull/14747/head
Paul Szczepanek 2021-06-09 13:58:27 +01:00
parent 7b94f257dd
commit 4fae828987
1 changed files with 2 additions and 1 deletions

View File

@ -2461,6 +2461,8 @@ ble_error_t Gap::startAdvertising(
#if BLE_FEATURE_EXTENDED_ADVERTISING
void Gap::process_enable_queue()
{
_process_enable_queue_pending = false;
tr_info("Evaluating pending advertising sets to be started");
if (!_advertising_enable_command_params.number_of_handles) {
/* no set pending to be enabled */
@ -2506,7 +2508,6 @@ void Gap::process_enable_queue()
}
_advertising_enable_command_params.number_of_handles = 0;
_process_enable_queue_pending = false;
}
#endif //BLE_FEATURE_EXTENDED_ADVERTISING