From c6130f487756295bcfb7498b18660da1661b03c3 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Tue, 3 Nov 2015 13:18:33 +0000 Subject: [PATCH] fix missing return from BLE::init() --- ble/BLE.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ble/BLE.h b/ble/BLE.h index 6a92ca1..ac5883b 100644 --- a/ble/BLE.h +++ b/ble/BLE.h @@ -104,7 +104,7 @@ public: */ ble_error_t init(InitializationCompleteCallback_t initCompleteCallback = NULL) { FunctionPointerWithContext callback(initCompleteCallback); - initImplementation(callback); + return initImplementation(callback); } /** @@ -114,7 +114,7 @@ public: template ble_error_t init(T *object, void (T::*initCompleteCallback)(InitializationCompleteCallbackContext *context)) { FunctionPointerWithContext callback(object, initCompleteCallback); - initImplementation(callback); + return initImplementation(callback); } /**