project

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
151:4e9a1b1d9c63
Parent:
150:b37ec5129f3c
Child:
153:661dfc1a3088
--- 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);