You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/11 23:50:00 UTC

[10/50] [abbrv] incubator-mynewt-core git commit: bleprph - Account for addition of adv. duration.

bleprph - Account for addition of adv. duration.


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/3108b11e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3108b11e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3108b11e

Branch: refs/heads/ble_hs_api
Commit: 3108b11e1d24c6c31d47a82ea27c67f8293c20fd
Parents: 2c37b7b
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Jun 23 16:30:23 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Jul 11 16:43:31 2016 -0700

----------------------------------------------------------------------
 apps/bleprph/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3108b11e/apps/bleprph/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bleprph/src/main.c b/apps/bleprph/src/main.c
index c265dc5..11c3dc0 100755
--- a/apps/bleprph/src/main.c
+++ b/apps/bleprph/src/main.c
@@ -169,8 +169,8 @@ bleprph_advertise(void)
     memset(&adv_params, 0, sizeof adv_params);
     adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
     adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
-    rc = ble_gap_adv_start(BLE_ADDR_TYPE_PUBLIC, 0, NULL, &adv_params,
-                           bleprph_gap_event, NULL);
+    rc = ble_gap_adv_start(BLE_ADDR_TYPE_PUBLIC, 0, NULL, BLE_HS_FOREVER,
+                           &adv_params, bleprph_gap_event, NULL);
     if (rc != 0) {
         BLEPRPH_LOG(ERROR, "error enabling advertisement; rc=%d\n", rc);
         return;