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:38 UTC

[48/50] [abbrv] incubator-mynewt-core git commit: bletiny - conn: peer_addr_type=public by dflt.

bletiny - conn: peer_addr_type=public by dflt.


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

Branch: refs/heads/ble_hs_api
Commit: fe132293c9ef3285c12c3597da50ba9dddd66849
Parents: 77b9d5e
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Jul 11 16:41:56 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Jul 11 16:43:35 2016 -0700

----------------------------------------------------------------------
 apps/bletiny/src/cmd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/fe132293/apps/bletiny/src/cmd.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/cmd.c b/apps/bletiny/src/cmd.c
index 6043aeb..3d05fb7 100644
--- a/apps/bletiny/src/cmd.c
+++ b/apps/bletiny/src/cmd.c
@@ -395,8 +395,9 @@ cmd_conn(int argc, char **argv)
         return 0;
     }
 
-    peer_addr_type = parse_arg_kv("peer_addr_type", cmd_conn_peer_addr_types,
-                                  &rc);
+    peer_addr_type = parse_arg_kv_default("peer_addr_type",
+                                          cmd_conn_peer_addr_types,
+                                          BLE_ADDR_TYPE_PUBLIC, &rc);
     if (rc != 0) {
         return rc;
     }