Skip to content

Commit 2f98901

Browse files
committed
BLE - Avoid calling v2 API in GenericGap::reset_ if not required.
1 parent b5d713d commit 2f98901

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

features/FEATURE_BLE/source/generic/GenericGap.tpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,11 @@ ble_error_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEve
14651465
#if BLE_ROLE_OBSERVER
14661466
_scan_timeout.detach();
14671467
#endif
1468+
1469+
if (_deprecated_scan_api_used == true) {
1470+
return BLE_ERROR_NONE;
1471+
}
1472+
14681473
#if BLE_FEATURE_EXTENDED_ADVERTISING
14691474
if (is_extended_advertising_available()) {
14701475
/* stop all advertising sets */

0 commit comments

Comments
 (0)