Skip to content

Commit

Permalink
nimble/ll: fix ifdef
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bvdberg authored and andrzej-kaczmarek committed Apr 11, 2024
1 parent 1e9ba46 commit 5599a15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nimble/controller/src/ble_ll_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5599a15

Please sign in to comment.