This is an automated email from the ASF dual-hosted git repository. rymek pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit a7e3f7cadee00dad2dd24d461033c336f529e3cf Author: Krzysztof Kopyściński <[email protected]> AuthorDate: Fri Jul 31 07:59:04 2020 +0200 apps/blestress - change pattern data offset to 0 in stress_fill_mbuf_with_pattern() filling mbuf should begin at start of pattern buffer, as the full length of that buffer if being copied --- apps/blestress/src/stress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/blestress/src/stress.c b/apps/blestress/src/stress.c index 0bed576..1bdbafa 100644 --- a/apps/blestress/src/stress.c +++ b/apps/blestress/src/stress.c @@ -121,7 +121,7 @@ stress_fill_mbuf_with_pattern(struct os_mbuf *om, uint16_t len) rest = len % STRESS_PAT_LEN; for (i = 0; i < mul; ++i) { - rc = os_mbuf_append(om, &test_6_pattern[29], STRESS_PAT_LEN); + rc = os_mbuf_append(om, &test_6_pattern[0], STRESS_PAT_LEN); if (rc) { os_mbuf_free_chain(om); @@ -129,7 +129,7 @@ stress_fill_mbuf_with_pattern(struct os_mbuf *om, uint16_t len) } } - rc = os_mbuf_append(om, &test_6_pattern[29], rest); + rc = os_mbuf_append(om, &test_6_pattern[0], rest); if (rc) { os_mbuf_free_chain(om);
