This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 5599a1536 nimble/ll: fix ifdef
5599a1536 is described below

commit 5599a15369c294b916eba093889b0a9960f7b05c
Author: Bas van den Berg <[email protected]>
AuthorDate: Thu Apr 11 11:53:37 2024 +0200

    nimble/ll: fix ifdef
    
    ble_ll_ctrl_phy_update_ind_instant() is called from another function
    inside #if MYNEWT_VAL(BLE_LL_PHY), but it was defined only if
    ROLE_CENTRAL was enabled
---
 nimble/controller/src/ble_ll_ctrl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nimble/controller/src/ble_ll_ctrl.c 
b/nimble/controller/src/ble_ll_ctrl.c
index 6eb883c82..d2b8a31b7 100644
--- a/nimble/controller/src/ble_ll_ctrl.c
+++ b/nimble/controller/src/ble_ll_ctrl.c
@@ -856,7 +856,9 @@ ble_ll_ctrl_phy_update_ind_make(struct ble_ll_conn_sm 
*connsm, uint8_t *dptr,
     ctrdata[0] = m_to_s;
     ctrdata[1] = s_to_m;
 }
+#endif
 
+#if MYNEWT_VAL(BLE_LL_PHY)
 static bool
 ble_ll_ctrl_phy_update_ind_instant(struct ble_ll_conn_sm *connsm, uint8_t 
*ctrdata)
 {

Reply via email to