You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/03/07 00:05:08 UTC

[13/50] incubator-mynewt-core git commit: blecent: Fix not setting initial BLE address

blecent: Fix not setting initial BLE address

Application needs to set correct public address if it want to use it.

MYNEWT-634


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

Branch: refs/heads/1_0_0_dev
Commit: 58ea0a58c6b51e032440959221ad3f4cead87fa3
Parents: 5f24475
Author: Szymon Janc <sz...@codecoup.pl>
Authored: Tue Feb 28 12:39:17 2017 +0100
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 6 15:49:13 2017 -0800

----------------------------------------------------------------------
 apps/blecent/src/main.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/58ea0a58/apps/blecent/src/main.c
----------------------------------------------------------------------
diff --git a/apps/blecent/src/main.c b/apps/blecent/src/main.c
index 4c271ca..a1dfa62 100755
--- a/apps/blecent/src/main.c
+++ b/apps/blecent/src/main.c
@@ -465,6 +465,9 @@ main(void)
 {
     int rc;
 
+    /* Set initial BLE device address. */
+    memcpy(g_dev_addr, (uint8_t[6]){0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a}, 6);
+
     /* Initialize OS */
     sysinit();