mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Force stop scan before connection initiation.
parent
c5be493bb7
commit
9c6f44de91
|
@ -503,6 +503,9 @@ ble_error_t GenericGap::connect(
|
|||
|
||||
// TODO fix upper layer API, address type factorization is incorrect.
|
||||
|
||||
// Force scan stop before initiating the scan used for connection
|
||||
stopScan();
|
||||
|
||||
return _pal_gap.create_connection(
|
||||
scanParams->getInterval(),
|
||||
scanParams->getWindow(),
|
||||
|
|
Loading…
Reference in New Issue