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/08/12 00:23:29 UTC

incubator-mynewt-core git commit: blehci - Use ble_hci_uart_cfg object, not dflt.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 95c70a5f0 -> ca1c44691


blehci - Use ble_hci_uart_cfg object, not dflt.

This commit doesn't change any behavior, it just makes it easier to
change UART settings when debugging.


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

Branch: refs/heads/develop
Commit: ca1c4469194feb1dabaaa70f386bd994735541e1
Parents: 95c70a5
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Aug 11 17:21:43 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Aug 11 17:21:43 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ca1c4469/apps/blehci/src/main.c
----------------------------------------------------------------------
diff --git a/apps/blehci/src/main.c b/apps/blehci/src/main.c
index 20fc4bc..e95f402 100755
--- a/apps/blehci/src/main.c
+++ b/apps/blehci/src/main.c
@@ -51,6 +51,7 @@ struct os_mempool default_mbuf_mpool;
 int
 main(void)
 {
+    struct ble_hci_uart_cfg hci_cfg;
     int rc;
 
     /* Initialize OS */
@@ -76,7 +77,8 @@ main(void)
     rc = ble_ll_init(BLE_LL_TASK_PRI, MBUF_NUM_MBUFS, BLE_MBUF_PAYLOAD_SIZE);
     assert(rc == 0);
 
-    rc = ble_hci_uart_init(&ble_hci_uart_cfg_dflt);
+    hci_cfg = ble_hci_uart_cfg_dflt;
+    rc = ble_hci_uart_init(&hci_cfg);
     assert(rc == 0);
 
     /* Start the OS */