High level Bluetooth Low Energy API and radio abstraction layer

Fork of BLE_API by Bluetooth Low Energy

Revision:
923:ca1964e56ddf
Parent:
922:e04837405cd5
Child:
933:3ec277a0d780
diff -r e04837405cd5 -r ca1964e56ddf ble/Gap.h
--- a/ble/Gap.h	Thu Nov 26 12:52:04 2015 +0000
+++ b/ble/Gap.h	Thu Nov 26 12:52:04 2015 +0000
@@ -959,11 +959,14 @@
      */
     void onRadioNotification(void (*callback)(bool param)) {
         radioNotificationCallback.attach(callback);
+        // why does it start radio notification ? It is not even indicated in the 
+        // doc that it start the listening process
         initRadioNotification();
     }
     template <typename T>
     void onRadioNotification(T *tptr, void (T::*mptr)(bool)) {
         radioNotificationCallback.attach(tptr, mptr);
+        // why does it start radio notification ?
         initRadioNotification();
     }
 
@@ -1036,10 +1039,10 @@
     bool                             scanningActive;
 
 protected:
-    TimeoutEventCallbackChain_t           timeoutCallbackChain;
-    RadioNotificationEventCallback_t radioNotificationCallback;
-    AdvertisementReportCallback_t    onAdvertisementReport;
-    ConnectionEventCallbackChain_t connectionCallChain;
+    TimeoutEventCallbackChain_t       timeoutCallbackChain;
+    RadioNotificationEventCallback_t  radioNotificationCallback;
+    AdvertisementReportCallback_t     onAdvertisementReport;
+    ConnectionEventCallbackChain_t    connectionCallChain;
     DisconnectionEventCallbackChain_t disconnectionCallChain;
 
 private: