You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2020/02/04 16:23:29 UTC
[mynewt-nimble] 01/02: nimble/ll: Fix SyncInfo units when no offset
is provided
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 643eff996c1c3489b2a3fd2ed23f2f8a8e90ccfb
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon Feb 3 23:12:33 2020 +0100
nimble/ll: Fix SyncInfo units when no offset is provided
If periodic advertising event is too far in future to be represented
in SyncInfo, offset is set to 0 and units should also not be set.
---
nimble/controller/src/ble_ll_adv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/nimble/controller/src/ble_ll_adv.c b/nimble/controller/src/ble_ll_adv.c
index 7f888fe..1413c81 100644
--- a/nimble/controller/src/ble_ll_adv.c
+++ b/nimble/controller/src/ble_ll_adv.c
@@ -634,6 +634,7 @@ ble_ll_adv_put_syncinfo(struct ble_ll_adv_sm *advsm,
units |= 0x40;
} else {
offset = 0;
+ units = 0x00;
}
}