Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API

Dependents:   microbit-dal microbit-dal microbit-ble-open microbit-dal ... more

Fork of BLE_API by Bluetooth Low Energy

Revision:
1049:d99774db03b4
Parent:
1048:efb29faf12fc
Child:
1052:b55e1ad3e1b3
--- a/ble/FunctionPointerWithContext.h	Mon Jan 11 08:51:28 2016 +0000
+++ b/ble/FunctionPointerWithContext.h	Mon Jan 11 08:51:29 2016 +0000
@@ -94,6 +94,16 @@
         }
     }
 
+    /** Same as above, workaround for mbed os FunctionPointer implementation. */
+    void call(ContextType context) {
+        _caller(this, context);
+
+        /* Propagate the call to next in the chain. */
+        if (_next) {
+            _next->call(context);
+        }
+    }
+
     /**
      * Set up an external FunctionPointer as a next in the chain of related
      * callbacks. Invoking call() on the head FunctionPointer will invoke all