Bike service

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