Wouter van Kleunen / X_NUCLEO_IDB0XA1

Fork of X_NUCLEO_IDB0XA1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Wolfgang Betz
Date:
Wed Oct 28 08:00:53 2015 +0100
Parent:
151:4e9a1b1d9c63
Parent:
152:4afc5c2fc4f3
Child:
154:357d698334ba
Commit message:
Merge branch 'master' into betzw_wb

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 13:42:36 2015 +0100
+++ b/source/BlueNRGGap.cpp	Wed Oct 28 08:00:53 2015 +0100
@@ -1029,6 +1029,9 @@
       makeConnection();  
     } else {
       PRINTF("re-startRadioScan\n\r");
+      // FIXME: We need to wait for a while before creating a connection
+      // due to BlueNRG process queue handling
+      Clock_Wait(100);
       startRadioScan(_scanningParams);
     }
 
--- a/source/BlueNRGGattClient.cpp	Tue Oct 27 13:42:36 2015 +0100
+++ b/source/BlueNRGGattClient.cpp	Wed Oct 28 08:00:53 2015 +0100
@@ -544,9 +544,9 @@
   // Save the attribute_handle not provided by evt_att_read_resp    
   gattc->readCBParams.handle = attributeHandle;
   
-  // We need to wait for a while before starting a read due to
-  // BlueNRG process queue handling
-  Clock_Wait(100); //(?)
+  // FIXME: We need to wait for a while before starting a read
+  // due to BlueNRG process queue handling
+  Clock_Wait(100);
 
   ret = aci_gatt_read_charac_val(connHandle, attributeHandle);