Skip to content

Commit 4fae828

Browse files
Fix process enable queue guard not being reset on failed runs
1 parent 7b94f25 commit 4fae828

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,6 +2461,8 @@ ble_error_t Gap::startAdvertising(
24612461
#if BLE_FEATURE_EXTENDED_ADVERTISING
24622462
void Gap::process_enable_queue()
24632463
{
2464+
_process_enable_queue_pending = false;
2465+
24642466
tr_info("Evaluating pending advertising sets to be started");
24652467
if (!_advertising_enable_command_params.number_of_handles) {
24662468
/* no set pending to be enabled */
@@ -2506,7 +2508,6 @@ void Gap::process_enable_queue()
25062508
}
25072509

25082510
_advertising_enable_command_params.number_of_handles = 0;
2509-
_process_enable_queue_pending = false;
25102511
}
25112512
#endif //BLE_FEATURE_EXTENDED_ADVERTISING
25122513

0 commit comments

Comments
 (0)