mirror of https://github.com/ARMmbed/mbed-os.git
Fix process enable queue guard not being reset on failed runs
parent
7b94f257dd
commit
4fae828987
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue