add "LE Device Address" 0x1B to advertising data types
Fork of BLE_API by
Diff: ble/FunctionPointerWithContext.h
- Revision:
- 1049:d99774db03b4
- Parent:
- 1048:efb29faf12fc
- Child:
- 1052:b55e1ad3e1b3
diff -r efb29faf12fc -r d99774db03b4 ble/FunctionPointerWithContext.h --- 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