mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-08 18:20:02 +00:00
mesh: Fix macro in net.c
This commit is contained in:
committed by
Michał Narajowski
parent
5ea192af01
commit
a4d3fb4368
@@ -344,7 +344,7 @@ static void bt_mesh_net_local(struct ble_npl_event *work)
|
||||
|
||||
static const struct bt_mesh_net_cred *net_tx_cred_get(struct bt_mesh_net_tx *tx)
|
||||
{
|
||||
#if defined(CONFIG_BT_MESH_LOW_POWER)
|
||||
#if IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)
|
||||
if (tx->friend_cred && bt_mesh_lpn_established()) {
|
||||
return &bt_mesh.lpn.cred[SUBNET_KEY_TX_IDX(tx->sub)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user