Skip to content

Commit

Permalink
Merge pull request #14801 from paul-szczepanek-arm/fix-ble
Browse files Browse the repository at this point in the history
BKE: fix statements outside correct feature guard blocks
  • Loading branch information
0xc0170 authored Jun 17, 2021
2 parents 1a2e96b + ede39c4 commit 3319beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectivity/FEATURE_BLE/source/generic/GapImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1233,20 +1233,20 @@ ble_error_t Gap::reset()
#endif

#if BLE_ROLE_BROADCASTER
#if BLE_FEATURE_EXTENDED_ADVERTISING
/* clear advertising set data on the controller */
_pal_gap.clear_advertising_sets();
#if BLE_FEATURE_EXTENDED_ADVERTISING
/* reset pending advertising sets */
_advertising_enable_command_params.number_of_handles = 0;
_process_enable_queue_pending = false;
_process_disable_queue_pending = false;
_existing_sets.clear();
_pending_stop_sets.clear();
#if BLE_FEATURE_PERIODIC_ADVERTISING
_active_periodic_sets.clear();
#endif // BLE_FEATURE_PERIODIC_ADVERTISING
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
_active_sets.clear();
_pending_stop_sets.clear();
_pending_sets.clear();
_address_refresh_sets.clear();
_interruptible_sets.clear();
Expand Down

0 comments on commit 3319beb

Please sign in to comment.