Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Revision 882:a4e00d3d7bcb, committed 2015-11-03
- Comitter:
- rgrover1
- Date:
- Tue Nov 03 13:21:03 2015 +0000
- Parent:
- 881:853f1df9e30a
- Child:
- 883:a097e1be76f4
- Commit message:
- Synchronized with git rev c6130f48
Author: Rohit Grover
fix missing return from BLE::init()
Changed in this revision
| ble/BLE.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/BLE.h Tue Nov 03 13:21:03 2015 +0000
+++ b/ble/BLE.h Tue Nov 03 13:21:03 2015 +0000
@@ -104,7 +104,7 @@
*/
ble_error_t init(InitializationCompleteCallback_t initCompleteCallback = NULL) {
FunctionPointerWithContext<InitializationCompleteCallbackContext *> callback(initCompleteCallback);
- initImplementation(callback);
+ return initImplementation(callback);
}
/**
@@ -114,7 +114,7 @@
template<typename T>
ble_error_t init(T *object, void (T::*initCompleteCallback)(InitializationCompleteCallbackContext *context)) {
FunctionPointerWithContext<InitializationCompleteCallbackContext *> callback(object, initCompleteCallback);
- initImplementation(callback);
+ return initImplementation(callback);
}
/**
