Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 4a287aa01 -> 708d3240a


nimble ble host; assert if host fails to start.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/708d3240
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/708d3240
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/708d3240

Branch: refs/heads/develop
Commit: 708d3240aa61eb342064034038249989ef9771db
Parents: 4a287aa
Author: Marko Kiiskila <[email protected]>
Authored: Mon Jan 9 10:38:45 2017 -0800
Committer: Marko Kiiskila <[email protected]>
Committed: Mon Jan 9 10:38:45 2017 -0800

----------------------------------------------------------------------
 net/nimble/host/src/ble_hs.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/708d3240/net/nimble/host/src/ble_hs.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_hs.c b/net/nimble/host/src/ble_hs.c
index 0d35a88..f526f5e 100644
--- a/net/nimble/host/src/ble_hs.c
+++ b/net/nimble/host/src/ble_hs.c
@@ -392,7 +392,10 @@ ble_hs_event_reset(struct os_event *ev)
 static void
 ble_hs_event_start(struct os_event *ev)
 {
-    ble_hs_start();
+    int rc;
+
+    rc = ble_hs_start();
+    assert(rc == 0);
 }
 
 void

Reply via email to