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.
Fork of X_NUCLEO_IDB0XA1 by
Revision 151:4e9a1b1d9c63, committed 2015-10-27
- Comitter:
- Wolfgang Betz
- Date:
- Tue Oct 27 13:42:36 2015 +0100
- Parent:
- 150:b37ec5129f3c
- Child:
- 153:661dfc1a3088
- Commit message:
- Wait before any scanning (re-)start
Changed in this revision
| source/BlueNRGGap.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
