Skip to content

Commit 7941a6f

Browse files
committed
BLE: Force stop scan before connection initiation.
1 parent 24a3acd commit 7941a6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/FEATURE_BLE/source/generic/GenericGap.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ ble_error_t GenericGap::connect(
501501

502502
// TODO fix upper layer API, address type factorization is incorrect.
503503

504+
// Force scan stop before initiating the scan used for connection
505+
stopScan();
506+
504507
return _pal_gap.create_connection(
505508
scanParams->getInterval(),
506509
scanParams->getWindow(),

0 commit comments

Comments
 (0)