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/05/19 01:24:02 UTC

incubator-mynewt-core git commit: bletiny - Increase mbuf count to support iPhone.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/090_dev 94ae8bd0d -> c90e85ce0


bletiny - Increase mbuf count to support iPhone.

The iPhone appears to send a bunch of packets in rapid succession
immediately after connecting.  The nimble host doesn't have a good way
to alleviate this problem at the moment, so the temporary fix is to
increase the number of mbufs.


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

Branch: refs/heads/090_dev
Commit: c90e85ce099a598835d2fde1ff5fcb392eef97aa
Parents: 94ae8bd
Author: Christopher Collins <cc...@apache.org>
Authored: Wed May 18 18:21:55 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed May 18 18:21:55 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c90e85ce/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index 42c93c9..2545e24 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -72,7 +72,7 @@ uint8_t g_host_adv_len;
 static uint8_t bletiny_addr[6] = {0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a};
 
 /* Create a mbuf pool of BLE mbufs */
-#define MBUF_NUM_MBUFS      (7)
+#define MBUF_NUM_MBUFS      (12)
 #define MBUF_BUF_SIZE       OS_ALIGN(BLE_MBUF_PAYLOAD_SIZE, 4)
 #define MBUF_MEMBLOCK_SIZE  (MBUF_BUF_SIZE + BLE_MBUF_MEMBLOCK_OVERHEAD)
 #define MBUF_MEMPOOL_SIZE   OS_MEMPOOL_SIZE(MBUF_NUM_MBUFS, MBUF_MEMBLOCK_SIZE)
@@ -264,7 +264,7 @@ bletiny_print_adv_fields(struct ble_hs_adv_fields *fields)
     if (fields->name != NULL) {
         console_printf("    name(%scomplete)=",
                        fields->name_is_complete ? "" : "in");
-        console_printf("%*s\n", fields->name_len, fields->name);
+        console_write((char *)fields->name, fields->name_len);
     }
 
     if (fields->tx_pwr_lvl_is_present) {