Skip to content

Commit ede39c4

Browse files
put statements inside the correct feature guard blocks
1 parent 1a2e96b commit ede39c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1233,20 +1233,20 @@ ble_error_t Gap::reset()
12331233
#endif
12341234

12351235
#if BLE_ROLE_BROADCASTER
1236+
#if BLE_FEATURE_EXTENDED_ADVERTISING
12361237
/* clear advertising set data on the controller */
12371238
_pal_gap.clear_advertising_sets();
1238-
#if BLE_FEATURE_EXTENDED_ADVERTISING
12391239
/* reset pending advertising sets */
12401240
_advertising_enable_command_params.number_of_handles = 0;
12411241
_process_enable_queue_pending = false;
12421242
_process_disable_queue_pending = false;
12431243
_existing_sets.clear();
1244+
_pending_stop_sets.clear();
12441245
#if BLE_FEATURE_PERIODIC_ADVERTISING
12451246
_active_periodic_sets.clear();
12461247
#endif // BLE_FEATURE_PERIODIC_ADVERTISING
12471248
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
12481249
_active_sets.clear();
1249-
_pending_stop_sets.clear();
12501250
_pending_sets.clear();
12511251
_address_refresh_sets.clear();
12521252
_interruptible_sets.clear();

0 commit comments

Comments
 (0)