You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/11/21 15:55:25 UTC
[GitHub] [mynewt-nimble] andrzej-kaczmarek commented on a change in pull
request #651: Support for BT 5.1 periodic sync transfer
andrzej-kaczmarek commented on a change in pull request #651: Support for BT 5.1 periodic sync transfer
URL: https://github.com/apache/mynewt-nimble/pull/651#discussion_r349167519
##########
File path: nimble/controller/src/ble_ll_adv.c
##########
@@ -3133,6 +3133,32 @@ sec_phy_valid(uint8_t phy)
}
}
+static struct ble_ll_adv_sm *
+ble_ll_adv_sm_get(uint8_t instance)
+{
+ struct ble_ll_adv_sm *advsm;
+ int i;
+
+ advsm = ble_ll_adv_sm_find_configured(instance);
+ if (advsm) {
+ return advsm;
+ }
+
+ for (i = 0; i < ARRAY_SIZE(g_ble_ll_adv_sm); i++) {
+ advsm = &g_ble_ll_adv_sm[i];
+
+ if ((advsm->flags & BLE_LL_ADV_SM_FLAG_CONFIGURED)) {
Review comment:
should be `!`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services