Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-os-example-ble-Advertising
Diff: source/BlueNRGGap.cpp
- Revision:
- 151:4e9a1b1d9c63
- Parent:
- 150:b37ec5129f3c
- Child:
- 153:661dfc1a3088
diff -r b37ec5129f3c -r 4e9a1b1d9c63 source/BlueNRGGap.cpp
--- a/source/BlueNRGGap.cpp Tue Oct 27 11:04:36 2015 +0100
+++ b/source/BlueNRGGap.cpp Tue Oct 27 13:42:36 2015 +0100
@@ -1021,12 +1021,12 @@
PRINTF("DISCOVERY_COMPLETE\n\r");
_scanning = false;
+ // We need to wait for a while before creating a connection due to
+ // BlueNRG process queue handling
+ Clock_Wait(100);
+
if(_connecting) {
- // We need to wait for a while before creating a connection due to
- // BlueNRG process queue handling
- Clock_Wait(100);
- makeConnection();
-
+ makeConnection();
} else {
PRINTF("re-startRadioScan\n\r");
startRadioScan(_scanningParams);