fix missing return from BLE::init()

This commit is contained in:
Rohit Grover 2015-11-03 13:18:33 +00:00
parent 2d6aade713
commit c6130f4877

View file

@ -104,7 +104,7 @@ public:
*/
ble_error_t init(InitializationCompleteCallback_t initCompleteCallback = NULL) {
FunctionPointerWithContext<InitializationCompleteCallbackContext *> callback(initCompleteCallback);
initImplementation(callback);
return initImplementation(callback);
}
/**
@ -114,7 +114,7 @@ public:
template<typename T>
ble_error_t init(T *object, void (T::*initCompleteCallback)(InitializationCompleteCallbackContext *context)) {
FunctionPointerWithContext<InitializationCompleteCallbackContext *> callback(object, initCompleteCallback);
initImplementation(callback);
return initImplementation(callback);
}
/**