gjhn

Dependents:   BLE_GENERALE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
157:e27f00b5e251
Parent:
156:662bb3992a03
Child:
158:1b92852cfb71
--- a/source/BlueNRGGap.cpp	Wed Oct 28 14:04:55 2015 +0100
+++ b/source/BlueNRGGap.cpp	Wed Oct 28 14:21:09 2015 +0100
@@ -1021,10 +1021,6 @@
     PRINTF("DISCOVERY_COMPLETE\n\r");
     _scanning = false;
 
-    // FIXME: We need to wait for a while before creating a connection
-    // due to BlueNRG process queue handling
-    Clock_Wait(100);
-
     if(_connecting) {
       makeConnection();  
     } else {
@@ -1062,7 +1058,7 @@
 
 	  // FIXME: We need to wait for a while before creating a connection
 	  // due to BlueNRG process queue handling
-	  Clock_Wait(1000);
+	  Clock_Wait(100);
   }
   
   if (ret != BLE_STATUS_SUCCESS) {